-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
39fdda3
commit 940bcae
Showing
2 changed files
with
5 additions
and
6 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,12 +1,12 @@ | ||
FROM node:10-alpine AS builder | ||
FROM node:12-alpine AS builder | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run build:prod | ||
# change setup to use shared folder inside the build | ||
|
||
FROM nginx | ||
LABEL maintainer="Jan Schulte <[email protected]>" | ||
FROM nginx:1.17.8-alpine | ||
COPY nginx/default.conf /etc/nginx/conf.d | ||
COPY --from=builder /app/dist/frontend /usr/share/nginx/html | ||
# the container can be started like this: docker run -p 80:80 -e PORT=80 mviz-demonstrator | ||
CMD sed -i -e 's/$PORT/'"$PORT"'/g' /etc/nginx/conf.d/default.conf && 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
listen $PORT; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
|