mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
20 lines
378 B
Docker
20 lines
378 B
Docker
FROM node:latest
|
|
|
|
RUN apt-get update && apt-get -y install dos2unix
|
|
|
|
WORKDIR /opt/magic_mirror
|
|
COPY . .
|
|
COPY /modules unmount_modules
|
|
COPY /config unmount_config
|
|
|
|
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
|
|
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"]
|