Added Docker support

This commit is contained in:
Sebastian Limbach
2017-01-31 11:41:40 +01:00
parent 8010e6220d
commit 354b745c39
6 changed files with 121 additions and 3 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:latest
WORKDIR /opt/magic_mirror
COPY . .
COPY /modules unmount_modules
COPY /config unmount_config
ENV NODE_ENV production
ENV MM_PORT 8080
RUN npm install
RUN ["chmod", "+x", "docker-entrypoint.sh"]
EXPOSE $MM_PORT
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"]