mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 01:48:28 +00:00
fix can't visit through https://cobalt.tianfujixing.com-3
This commit is contained in:
parent
031a865a63
commit
2fbac6cb51
@ -15,11 +15,14 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
|
||||
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
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /prod/api /app
|
||||
COPY --from=build /app/.git /app/.git
|
||||
|
||||
EXPOSE 9000
|
||||
EXPOSE 80
|
||||
CMD [ "node", "src/cobalt" ]
|
@ -31,7 +31,7 @@ securityContext: {}
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
targetPort: 9000
|
||||
targetPort: 80
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
|
Loading…
Reference in New Issue
Block a user