Skip to content

Commit

Permalink
Remove build stage from Dockerfile
Browse files Browse the repository at this point in the history
My bad, forgot how goreleaser worked
  • Loading branch information
praqma-thi committed Sep 18, 2023
1 parent 6df6c63 commit b0e58f5
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# Build
FROM golang:1.21 AS build-stage

WORKDIR /app

COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build

# Deploy
FROM releases-docker.jfrog.io/jfrog/jfrog-cli-v2-jf:2.48.0

WORKDIR /root/

RUN mkdir -p .jfrog/plugins
COPY --from=build-stage /app/rt-retention .jfrog/plugins
RUN mkdir -p .jfrog/plugins/
COPY rt-retention .jfrog/plugins/rt-retention

ENTRYPOINT ["jf", "rt-retention"]
CMD ["--help"]

0 comments on commit b0e58f5

Please sign in to comment.