add docker file
This commit is contained in:
parent
f861d250cb
commit
a7cdc94869
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
build/
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM node:lts-alpine as builder
|
||||
WORKDIR /data
|
||||
COPY . .
|
||||
RUN npm i \
|
||||
&& npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
WORKDIR /
|
||||
COPY --from=builder /data/build/ /usr/share/nginx/html
|
Loading…
Reference in New Issue
Block a user