mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
revert removing Dockerfile
This commit is contained in:
parent
dcc29ae273
commit
c49983df57
1 changed files with 21 additions and 0 deletions
21
src/FilterLists.Web/Dockerfile
Normal file
21
src/FilterLists.Web/Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Context: .
|
||||
# Command: docker build -f src/FilterLists.Web/Dockerfile .
|
||||
|
||||
# init base
|
||||
FROM nginx:alpine as base
|
||||
|
||||
# init build
|
||||
FROM node:alpine as build
|
||||
|
||||
# install
|
||||
WORKDIR /usr/src/app/
|
||||
COPY src/FilterLists.Web/package*.json ./
|
||||
RUN npm install --only=prod
|
||||
|
||||
# build
|
||||
COPY src/FilterLists.Web/. ./
|
||||
RUN INLINE_RUNTIME_CHUNK=false npm run build
|
||||
|
||||
# final
|
||||
FROM base as final
|
||||
COPY --from=build /usr/src/app/build /usr/share/nginx/html
|
||||
Loading…
Reference in a new issue