Merge pull request #743 from fewi/build-docker-windows

Fix error when building and running docker on windows
This commit is contained in:
Michael Teeuw 2017-03-03 13:26:32 +01:00 committed by GitHub
commit 043779f4af

View File

@ -1,5 +1,7 @@
FROM node:latest
RUN apt-get update && apt-get -y install dos2unix
WORKDIR /opt/magic_mirror
COPY . .
COPY /modules unmount_modules
@ -9,6 +11,8 @@ ENV NODE_ENV production
ENV MM_PORT 8080
RUN npm install
RUN ["dos2unix", "docker-entrypoint.sh"]
RUN ["chmod", "+x", "docker-entrypoint.sh"]
EXPOSE $MM_PORT