mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
fix problems when building the docker image on windows
This commit is contained in:
parent
e697ee72fa
commit
25b5daf6a5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user