This commit is contained in:
dylan
2026-01-09 18:07:41 +08:00
parent 57ddc4af4d
commit 6d34ef305f
157 changed files with 0 additions and 2031 deletions

View File

@@ -0,0 +1,16 @@
# 多阶段构建
FROM node:14 as build
COPY . /app
WORKDIR /app
RUN npm config set registry https://registry.npmmirror.com \
&& npm install \
&& npm run build:prod
FROM nginx:alpine
COPY --from=build /app/dist /app/www
COPY ./web.conf /etc/nginx/conf.d/default.conf