mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
tidy dockerfile
This commit is contained in:
parent
5a6ff9962a
commit
f9a86cf0dd
2 changed files with 11 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ services:
|
|||
build:
|
||||
context: .
|
||||
dockerfile: src/web/Dockerfile
|
||||
target: final
|
||||
networks:
|
||||
- reverse-proxy
|
||||
|
||||
|
|
|
|||
|
|
@ -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/. ./
|
||||
Loading…
Reference in a new issue