From f7b1893b21bf6a3c07f4f72a9451aa3c0dd6a5f5 Mon Sep 17 00:00:00 2001 From: wuhuizuo Date: Mon, 30 Sep 2024 17:30:37 +0800 Subject: [PATCH] fix(tiup-publisher): fix dockerfile Signed-off-by: wuhuizuo --- tiup-publisher/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tiup-publisher/Dockerfile b/tiup-publisher/Dockerfile index e9b8e0b..2067049 100644 --- a/tiup-publisher/Dockerfile +++ b/tiup-publisher/Dockerfile @@ -1,7 +1,7 @@ FROM golang:1.23.1-alpine AS builder COPY . /app -RUN --mount=type=cache,target=/go/pkg/mod cd /app && go build -o server ./cmd/server +RUN --mount=type=cache,target=/go/pkg/mod cd /app && go build -o tiup-publisher . # final image # there are oras and tiup tools in the image. @@ -9,5 +9,5 @@ FROM ghcr.io/pingcap-qe/cd/utils/release:v20240901-17-g6749b2e LABEL org.opencontainers.image.licenses="MIT" LABEL org.opencontainers.image.source="https://github.com/PingCAP-QE/ee-apps" -COPY --from=builder --chown=root:root /app/server /app/server -ENTRYPOINT [ "/app/server" ] +COPY --from=builder --chown=root:root /app/tiup-publisher /app/tiup-publisher +ENTRYPOINT [ "/app/tiup-publisher" ]