mirror of
https://github.com/Snawoot/hola-proxy.git
synced 2026-04-03 10:38:12 +00:00
single-layer docker image
This commit is contained in:
@@ -6,9 +6,12 @@ RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-s -w -extldflags "-static"'
|
||||
ADD https://curl.haxx.se/ca/cacert.pem /certs.crt
|
||||
RUN chmod 0644 /certs.crt
|
||||
|
||||
FROM scratch
|
||||
FROM scratch AS arrange
|
||||
COPY --from=build /go/src/github.com/Snawoot/hola-proxy/hola-proxy /
|
||||
COPY --from=build /certs.crt /etc/ssl/certs/ca-certificates.crt
|
||||
|
||||
FROM scratch
|
||||
COPY --from=arrange / /
|
||||
USER 9999:9999
|
||||
EXPOSE 8080/tcp
|
||||
ENTRYPOINT ["/hola-proxy", "-bind-address", "0.0.0.0:8080"]
|
||||
|
||||
Reference in New Issue
Block a user