fix: add Dockerfile
This commit is contained in:
parent
19c4c41704
commit
9c6aa0610f
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
FROM node:19-alpine as frontend
|
||||||
|
WORKDIR /frontend
|
||||||
|
COPY ./package.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:1.19
|
||||||
|
WORKDIR /nginx
|
||||||
|
COPY ./nginx/conf.d /etc/nginx/conf.d
|
||||||
|
COPY --from=frontend /frontend/dist /usr/local/nginx/html
|
Loading…
Reference in New Issue
Block a user