清除历史版本
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
FROM node:lts-alpine AS base
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
ENV NODE_ENV=production
|
||||
ARG NPM_CONFIG_REGISTRY=https://registry.npmmirror.com
|
||||
RUN npm config set registry ${NPM_CONFIG_REGISTRY}
|
||||
RUN corepack enable
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS builder
|
||||
COPY . .
|
||||
RUN pnpm i --frozen-lockfile
|
||||
ARG RELATIVE_PATH=/
|
||||
ARG BASE_URI=
|
||||
RUN pnpm run build:antd -- --base=${RELATIVE_PATH}${BASE_URI}
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
ARG BASE_URI=
|
||||
COPY --from=builder /app/apps/web-antd/dist /usr/share/nginx/html/${BASE_URI}
|
||||
COPY --from=builder /app/scripts/deploy/nginx.conf /etc/nginx/nginx.conf
|
||||
EXPOSE 8080
|
||||
Reference in New Issue
Block a user