From 2fbac6cb510782b7c07d27fd73a2d65654734db9 Mon Sep 17 00:00:00 2001 From: celebrateyang Date: Wed, 9 Oct 2024 15:36:42 +0800 Subject: [PATCH] fix can't visit through https://cobalt.tianfujixing.com-3 --- Dockerfile | 5 ++++- cobalt-chart/values.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e933c468..31eb7055 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/cobalt-chart/values.yaml b/cobalt-chart/values.yaml index d6478de7..8fc40635 100644 --- a/cobalt-chart/values.yaml +++ b/cobalt-chart/values.yaml @@ -31,7 +31,7 @@ securityContext: {} service: type: ClusterIP port: 80 - targetPort: 9000 + targetPort: 80 ingress: enabled: true