-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove layers and fix npm install of vendor
- Loading branch information
1 parent
1a2b4f8
commit 6e33e06
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
FROM node:latest | ||
|
||
RUN apt-get update && apt-get -y install dos2unix | ||
|
||
ENV NODE_ENV production | ||
ENV MM_PORT 8080 | ||
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"] | ||
RUN apt-get update \ | ||
&& apt-get -qy install tofrodos dos2unix \ | ||
&& chmod -R 777 vendor \ | ||
&& npm install \ | ||
&& cd vendor \ | ||
&& npm install \ | ||
&& cd .. \ | ||
&& dos2unix docker-entrypoint.sh \ | ||
&& chmod +x docker-entrypoint.sh | ||
|
||
EXPOSE $MM_PORT | ||
ENTRYPOINT ["/opt/magic_mirror/docker-entrypoint.sh"] |