add docker support (#279)
This commit is contained in:
parent
4946f30243
commit
2c8a80b499
1 changed files with 9 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM node:alpine AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN yarn && yarn run build
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
COPY --from=builder /app/public /usr/share/nginx/html
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Reference in a new issue