dockerize

This commit is contained in:
Collin M. Barrett 2019-07-26 21:35:16 -05:00
parent a13ff18709
commit 82ad039a53
4 changed files with 10 additions and 4 deletions

View file

@ -17,8 +17,7 @@ services:
restart: always
build:
context: .
dockerfile: src/FilterLists.Web/Dockerfile
target: final
dockerfile: src/web/Dockerfile
networks:
- reverse-proxy

View file

@ -16,7 +16,7 @@ server {
}
location / {
proxy_pass http://web:80;
proxy_pass http://web:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;

View file

@ -20,7 +20,7 @@ server {
}
location / {
proxy_pass http://web:80;
proxy_pass http://web:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;

7
src/web/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM node:alpine
CMD ["npm", "start"]
EXPOSE 3000
WORKDIR /usr/app/
COPY src/web/package*.json ./
RUN npm install -qy
COPY src/web/. ./