tidy dockerfile

This commit is contained in:
Collin M. Barrett 2019-07-27 07:42:42 -05:00
parent 5a6ff9962a
commit f9a86cf0dd
2 changed files with 11 additions and 2 deletions

View file

@ -18,6 +18,7 @@ services:
build:
context: .
dockerfile: src/web/Dockerfile
target: final
networks:
- reverse-proxy

View file

@ -1,7 +1,15 @@
FROM node:alpine
# Context: .
# Command: docker build -f src/FilterLists.Web/Dockerfile .
# init base
FROM node:alpine as final
CMD ["npm", "start"]
EXPOSE 3000
WORKDIR /usr/app/
# install
COPY src/web/package*.json ./
RUN npm install -qy
RUN npm install -qy --only=prod
# final
COPY src/web/. ./