mirror of
https://github.com/Alexey71/opera-proxy.git
synced 2026-05-14 14:40:59 +00:00
remove cert bundle from docker image as we have fallback now
This commit is contained in:
+1
-7
@@ -4,15 +4,9 @@ WORKDIR /go/src/github.com/Snawoot/opera-proxy
|
|||||||
COPY . .
|
COPY . .
|
||||||
ARG TARGETOS TARGETARCH
|
ARG TARGETOS TARGETARCH
|
||||||
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0 go build -a -tags netgo -ldflags '-s -w -extldflags "-static"'
|
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
|
FROM scratch
|
||||||
COPY --from=arrange / /
|
COPY --from=build /go/src/github.com/Snawoot/opera-proxy/opera-proxy /
|
||||||
USER 9999:9999
|
USER 9999:9999
|
||||||
EXPOSE 18080/tcp
|
EXPOSE 18080/tcp
|
||||||
ENTRYPOINT ["/opera-proxy", "-bind-address", "0.0.0.0:18080"]
|
ENTRYPOINT ["/opera-proxy", "-bind-address", "0.0.0.0:18080"]
|
||||||
|
|||||||
Reference in New Issue
Block a user