-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update container and create image using chartpress
- Loading branch information
Showing
4 changed files
with
24 additions
and
11 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
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
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,7 +1,10 @@ | ||
FROM nginx | ||
RUN apt-get update && apt-get install -y nodejs npm | ||
COPY server/package.json /usr/share/nginx/html/server/ | ||
RUN cd /usr/share/nginx/html/server && npm install | ||
COPY server/server.js /usr/share/nginx/html/server/ | ||
FROM nginx:latest | ||
RUN apt-get update && \ | ||
apt-get install -y nodejs npm && \ | ||
rm -rf /var/lib/apt/lists/* | ||
WORKDIR /usr/share/nginx/html/server/ | ||
COPY server/package.json ./ | ||
RUN npm install | ||
COPY server/server.js ./ | ||
COPY index.html /usr/share/nginx/html/ | ||
CMD ["sh", "-c", "nginx -g 'daemon off;' & cd /usr/share/nginx/html/server/ && node server.js"] | ||
CMD ["sh", "-c", "nginx -g 'daemon off;' & node server.js"] |
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