mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #743 from fewi/build-docker-windows
Fix error when building and running docker on windows
This commit is contained in:
commit
043779f4af
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user