MagicMirror/Dockerfile

23 lines
461 B
Docker
Raw Normal View History

2017-01-31 11:41:40 +01:00
FROM node:latest
ENV NODE_ENV production
ENV MM_PORT 8080
2017-01-31 11:41:40 +01:00
WORKDIR /opt/magic_mirror
2017-01-31 11:41:40 +01:00
COPY . .
COPY /modules unmount_modules
COPY /config unmount_config
RUN apt-get update \
&& apt-get -qy install tofrodos dos2unix \
&& chmod -R 777 vendor \
&& npm install \
&& cd vendor \
&& npm install \
&& cd .. \
&& dos2unix docker-entrypoint.sh \
&& chmod +x docker-entrypoint.sh
2017-01-31 11:41:40 +01:00
EXPOSE $MM_PORT
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"]