feat: Deploy the project using Docker

This commit is contained in:
zy7y
2022-10-08 12:09:20 +08:00
parent 0fb9718153
commit 987345f724
8 changed files with 342 additions and 2 deletions

11
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:16.15-alpine
COPY ./ /app
WORKDIR /app
RUN npm config set registry https://registry.npmjs.org
RUN npm install
RUN npm run build
FROM nginx:1.15.2-alpine
RUN mkdir /app
COPY --from=0 /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf