Skip to content

Commit

Permalink
Produce statically linked binary to avoid dynamic library issues
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev committed Oct 7, 2020
1 parent 75dd404 commit fb0b72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ ADD . /build

RUN go get -t -v ./... && \
go test -v ./... && \
go build -o google-storage-proxy ./cmd/
CGO_ENABLED=0 go build -o google-storage-proxy ./cmd/

FROM alpine:latest
LABEL org.opencontainers.image.source=https://github.com/cirruslabs/google-storage-proxy/

WORKDIR /svc
COPY --from=builder /build/google-storage-proxy /svc/
ENTRYPOINT ["/svc/google-storage-proxy"]
ENTRYPOINT ["/svc/google-storage-proxy"]

0 comments on commit fb0b72b

Please sign in to comment.