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 26
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 2, 2018
1 parent
c480036
commit fd08893
Showing
2 changed files
with
17 additions
and
0 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ coverage/ | |
.nyc_output/ | ||
*.log | ||
.env | ||
.git |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# build | ||
FROM nginx:stable-alpine | ||
|
||
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 \ | ||
&& 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/ |