From ae89a49e2aae0564d6a2eb0ffbd8ad26f856bf06 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Thu, 8 Jan 2026 18:17:35 +0200 Subject: [PATCH] remove cert bundle from docker image as we have fallback now --- Dockerfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index df7524c..0dd7869 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,9 @@ WORKDIR /go/src/github.com/Snawoot/opera-proxy COPY . . ARG TARGETOS TARGETARCH RUN GOOS=$TARGETOS GOARCH=$TARGETARCH 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 AS arrange -COPY --from=build /go/src/github.com/Snawoot/opera-proxy/opera-proxy / -COPY --from=build /certs.crt /etc/ssl/certs/ca-certificates.crt FROM scratch -COPY --from=arrange / / +COPY --from=build /go/src/github.com/Snawoot/opera-proxy/opera-proxy / USER 9999:9999 EXPOSE 18080/tcp ENTRYPOINT ["/opera-proxy", "-bind-address", "0.0.0.0:18080"]