fix problems when building the docker image on windows

This commit is contained in:
Felix Wiedemann 2017-03-03 13:06:32 +01:00
parent e697ee72fa
commit 25b5daf6a5

View File

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