mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +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
|
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" ]
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user