autoregistry

This commit is contained in:
2024-08-31 19:58:24 +02:00
parent 1f86f1a3e6
commit 426a2e7db8
10 changed files with 672 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM alpine:3.20.0 as builder
RUN apk update && apk add go
RUN mkdir /opt/proxy
COPY go.* /opt/proxy/
WORKDIR /opt/proxy
RUN go mod download
COPY *.go /opt/proxy/
RUN go build
FROM scratch
COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/
COPY --from=builder /opt/proxy/proxy /opt/proxy/proxy
ENTRYPOINT ["/opt/proxy/proxy"]