Skip to content

Commit 431c09d

Browse files
authored
Fix Docker's "exec user process caused no such file or directory" error (#1)
* Produce statically linked binary to avoid dynamic library issues * No need to "go get"
1 parent d4f4866 commit 431c09d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ FROM golang:latest as builder
33
WORKDIR /build
44
ADD . /build
55

6-
RUN go get -t -v ./... && \
7-
go build -o azure-blob-storage-proxy ./cmd/
6+
RUN CGO_ENABLED=0 go build -o azure-blob-storage-proxy ./cmd/
87

98
FROM alpine:latest
109
LABEL org.opencontainers.image.source=https://github.com/cirruslabs/azure-blob-storage-proxy/
1110

1211
WORKDIR /svc
1312
COPY --from=builder /build/azure-blob-storage-proxy /svc/
14-
ENTRYPOINT ["/svc/azure-blob-storage-proxy"]
13+
ENTRYPOINT ["/svc/azure-blob-storage-proxy"]

0 commit comments

Comments
 (0)