Skip to content

Commit

Permalink
fix(tiup-publisher): fix dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Sep 30, 2024
1 parent cea17dd commit f7b1893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tiup-publisher/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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.
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" ]

0 comments on commit f7b1893

Please sign in to comment.