Skip to content

Commit

Permalink
fix binary name in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hhakkaev-rewe committed Jun 8, 2023
1 parent 361c7bc commit 657d0b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ RUN go mod download -x
COPY . .

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o=./glab-runner-cleaner .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o=./gitlab-runner-cleaner .

FROM cgr.dev/chainguard/static:latest

WORKDIR /app
COPY --from=builder /src/glab-runner-cleaner .
COPY --from=builder /src/gitlab-runner-cleaner .
USER 65532:65532

CMD ["./glab-runner-cleaner"]
CMD ["./gitlab-runner-cleaner"]
4 changes: 2 additions & 2 deletions goreleaser.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM cgr.dev/chainguard/static:latest

COPY glab-runner-cleaner /usr/bin/glab-runner-cleaner
COPY gitlab-runner-cleaner /usr/bin/gitlab-runner-cleaner

ENTRYPOINT ["/usr/bin/glab-runner-cleaner"]
ENTRYPOINT ["/usr/bin/gitlab-runner-cleaner"]

0 comments on commit 657d0b3

Please sign in to comment.