COPY ca-certificates.crt idiomatically
This commit is contained in:
parent
39dec318bc
commit
d8e1d96c23
@ -1,9 +1,9 @@
|
|||||||
FROM golang:latest as builder
|
FROM golang:latest as builder
|
||||||
WORKDIR /go/src/github.com/olebedev/socks5
|
WORKDIR /go/src/github.com/olebedev/socks5
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o ./socks5
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=builder /go/src/github.com/olebedev/socks5/socks5 /
|
COPY --from=builder /go/src/github.com/olebedev/socks5/socks5 /
|
||||||
ENTRYPOINT ["/socks5"]
|
ENTRYPOINT ["/socks5"]
|
||||||
|
Loading…
Reference in New Issue
Block a user