Skip to content

Commit

Permalink
fixes dockerfile for goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
k-kinzal committed Dec 5, 2023
1 parent 0db50ce commit 0a33a4f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
FROM golang:1.21 as builder

ENV GOOS=linux
ENV GOARCH=amd64

WORKDIR /go/src/github.com/k-kinzal/pr
COPY . /go/src/github.com/k-kinzal/pr

RUN make build

FROM buildpack-deps:scm

COPY --from=builder /go/src/github.com/k-kinzal/pr/dist/linux-amd64/pr /usr/local/bin/pr
COPY pr /usr/local/bin/pr

ENTRYPOINT ["/usr/local/bin/pr"]
CMD ["--help"]

0 comments on commit 0a33a4f

Please sign in to comment.