fix docker build
This commit is contained in:
parent
28cd813886
commit
81a45bde5a
|
@ -4,6 +4,7 @@ ARG GIT_DESC=undefined
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/Snawoot/dumbproxy
|
WORKDIR /go/src/github.com/Snawoot/dumbproxy
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ARG TARGETOS TARGETARCH
|
||||||
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -tags netgo -ldflags '-s -w -extldflags "-static" -X main.version='"$GIT_DESC"
|
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -tags netgo -ldflags '-s -w -extldflags "-static" -X main.version='"$GIT_DESC"
|
||||||
ADD https://curl.haxx.se/ca/cacert.pem /certs.crt
|
ADD https://curl.haxx.se/ca/cacert.pem /certs.crt
|
||||||
RUN chmod 0644 /certs.crt
|
RUN chmod 0644 /certs.crt
|
||||||
|
|
Loading…
Reference in New Issue