2017-01-31 11:41:40 +01:00
|
|
|
FROM node:latest
|
|
|
|
|
2017-04-04 18:30:24 +02:00
|
|
|
ENV NODE_ENV production
|
|
|
|
ENV MM_PORT 8080
|
2017-01-31 11:41:40 +01:00
|
|
|
WORKDIR /opt/magic_mirror
|
2017-04-04 18:30:24 +02:00
|
|
|
|
2017-01-31 11:41:40 +01:00
|
|
|
COPY . .
|
|
|
|
COPY /modules unmount_modules
|
|
|
|
COPY /config unmount_config
|
|
|
|
|
2017-04-04 18:30:24 +02:00
|
|
|
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"]
|