Skip to content

Commit

Permalink
chore: add gh to Dockerfile (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reimei1213 authored Jul 20, 2023
1 parent 487288a commit bf9ee94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY *.go ./
RUN apk --no-cache add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community github-cli=2.32.0-r1
RUN CGO_ENABLED=0 GOOS=linux go build -a -o /bin/app

FROM gcr.io/distroless/static
COPY --from=builder /bin/app /bin/app
COPY --from=builder /usr/bin/gh /bin/gh
ENTRYPOINT ["/bin/app"]

0 comments on commit bf9ee94

Please sign in to comment.