This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Frederic Lavigne
committed
Oct 3, 2018
1 parent
58bdbe7
commit 4cdc218
Showing
2 changed files
with
14 additions
and
8 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,20 +1,28 @@ | ||
# build | ||
FROM nginx:stable-alpine | ||
FROM nginx:stable | ||
|
||
ARG CONTROLLER_SERVICE=http://lw-controller:8080 | ||
ENV CONTROLLER_SERVICE="${CONTROLLER_SERVICE}" | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN apk add --no-cache --virtual .build-deps nodejs alpine-sdk python \ | ||
RUN apt-get update \ | ||
&& apt-get install -y curl gnupg \ | ||
&& (curl -sL https://deb.nodesource.com/setup_8.x | bash -) \ | ||
&& apt-get update \ | ||
&& apt-get install -y python build-essential nodejs \ | ||
&& npm install \ | ||
&& npm run deploy:prod \ | ||
&& apk del .build-deps | ||
&& rm -rf node_modules \ | ||
&& apt-get remove -y python build-essential nodejs curl gnupg | ||
|
||
# RUN apk add --no-cache --virtual .build-deps nodejs alpine-sdk python \ | ||
# && npm install \ | ||
# && npm run deploy:prod \ | ||
# && apk del .build-deps | ||
|
||
RUN cp /app/dist/docker-nginx.conf /etc/nginx/conf.d/default.conf | ||
RUN mv /app/dist/ /var/www/ | ||
|
||
RUN rm /var/log/nginx/access.log /var/log/nginx/error.log | ||
|
||
CMD ["nginx", "-g", "daemon off;"] |
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