From 25b5daf6a5860e9d2ce4c55a6b9d33143a9800e9 Mon Sep 17 00:00:00 2001 From: Felix Wiedemann Date: Fri, 3 Mar 2017 13:06:32 +0100 Subject: [PATCH] fix problems when building the docker image on windows --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index d845bac0..ddf6d9d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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