4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-15 13:46:37 +00:00
AzuraCast/util/docker/static/Dockerfile

23 lines
446 B
Docker
Raw Normal View History

FROM library/node:8-alpine
RUN apk update \
&& apk add bash
RUN mkdir -p /data/web/static/node_modules /data/resources/locale \
&& chown -R node:node /data
COPY build_entrypoint.sh /
RUN chmod a+x /build_entrypoint.sh
2017-09-19 10:19:14 +00:00
# Define working directory.
WORKDIR /data/web/static
2017-09-19 10:19:14 +00:00
# Define working user.
USER node
VOLUME /data/web/static/node_modules
# Define default command.
ENTRYPOINT ["/build_entrypoint.sh"]
CMD ["npm", "run", "build"]