update
This commit is contained in:
parent
a4e308f3e1
commit
7d468e8b73
@ -50,7 +50,14 @@ RUN echo "VUE_APP_API_URL=${API_URL:-/api}" > .env.production
|
|||||||
RUN echo "Installed dependencies:" && pnpm list
|
RUN echo "Installed dependencies:" && pnpm list
|
||||||
|
|
||||||
# 构建应用
|
# 构建应用
|
||||||
RUN pnpm run build
|
# 根据环境变量选择构建命令
|
||||||
|
RUN if [ "${NODE_ENV}" = "production" ]; then \
|
||||||
|
pnpm run build:prod; \
|
||||||
|
elif [ "${NODE_ENV}" = "testing" ]; then \
|
||||||
|
pnpm run build:test; \
|
||||||
|
else \
|
||||||
|
pnpm run build:dev; \
|
||||||
|
fi
|
||||||
|
|
||||||
# 生产阶段
|
# 生产阶段
|
||||||
FROM nginx:stable-alpine as production-stage
|
FROM nginx:stable-alpine as production-stage
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user