Skip to content

Commit 25b5daf

Browse files
committed
fix problems when building the docker image on windows
1 parent e697ee7 commit 25b5daf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM node:latest
22

3+
RUN apt-get update && apt-get -y install dos2unix
4+
35
WORKDIR /opt/magic_mirror
46
COPY . .
57
COPY /modules unmount_modules
@@ -9,6 +11,8 @@ ENV NODE_ENV production
911
ENV MM_PORT 8080
1012

1113
RUN npm install
14+
15+
RUN ["dos2unix", "docker-entrypoint.sh"]
1216
RUN ["chmod", "+x", "docker-entrypoint.sh"]
1317

1418
EXPOSE $MM_PORT

0 commit comments

Comments
 (0)