fix: add Dockerfile

This commit is contained in:
thehrz 2023-08-17 21:34:18 +08:00
parent 19c4c41704
commit 9c6aa0610f
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

11
Dockerfile Normal file
View 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