Skip to content

Commit

Permalink
fix problems when building the docker image on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fewi committed Mar 3, 2017
1 parent e697ee7 commit 25b5daf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 25b5daf

Please sign in to comment.