提交 0097fcc3 作者: ZhangLingKun

测试:测试推送部署

上级 171129f1
...@@ -21,7 +21,11 @@ COPY --from=deps /app/node_modules ./node_modules ...@@ -21,7 +21,11 @@ COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
#RUN yarn build && yarn install --production --ignore-scripts --prefer-offline #RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
RUN yarn build RUN \
if [ "${PROFILES_ACTIVE}" = "development" ]; then echo "env PROFILES_ACTIVE=development. exec yarn run build:dev" && yarn run build:dev; \
else echo "env PROFILES_ACTIVE !=development. exec yarn run build" && yarn run build; \
fi
# Production image, copy all the files and run next # Production image, copy all the files and run next
FROM base AS runner FROM base AS runner
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论