This commit is contained in:
celebrateyang 2024-10-09 15:36:42 +08:00
parent 031a865a63
commit 2fbac6cb51
2 changed files with 5 additions and 2 deletions

View File

@ -15,11 +15,14 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
RUN pnpm deploy --filter=@imput/cobalt-api --prod /prod/api RUN pnpm deploy --filter=@imput/cobalt-api --prod /prod/api
# 安装 curl
RUN apt-get update && apt-get install -y curl unzip && rm -rf /var/lib/apt/lists/*
FROM base AS api FROM base AS api
WORKDIR /app WORKDIR /app
COPY --from=build /prod/api /app COPY --from=build /prod/api /app
COPY --from=build /app/.git /app/.git COPY --from=build /app/.git /app/.git
EXPOSE 9000 EXPOSE 80
CMD [ "node", "src/cobalt" ] CMD [ "node", "src/cobalt" ]

View File

@ -31,7 +31,7 @@ securityContext: {}
service: service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
targetPort: 9000 targetPort: 80
ingress: ingress:
enabled: true enabled: true