From 9c6aa0610fef0d679f70d0eb12444443f0449ae4 Mon Sep 17 00:00:00 2001 From: thehrz Date: Thu, 17 Aug 2023 21:34:18 +0800 Subject: [PATCH] fix: add Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d0a5193 --- /dev/null +++ b/Dockerfile @@ -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 \ No newline at end of file