2026-07-23 02:18:05 +02:00
|
|
|
# Update the readable tag, index digest, and platforms together using the controlled process in CONTRIBUTING.md.
|
|
|
|
|
# Platforms: linux/amd64, linux/arm64
|
2026-08-15 07:44:56 -04:00
|
|
|
FROM golang:1.26.6-alpine3.23@sha256:2afa8bf41eb4c6b113ad1601739dbf755c9d19715049ae11db2dd2715e83438f AS build
|
2026-03-02 07:29:21 +01:00
|
|
|
WORKDIR /src
|
|
|
|
|
COPY go.mod go.sum ./
|
|
|
|
|
RUN go mod download
|
2026-04-24 09:46:45 +02:00
|
|
|
COPY *.go .
|
2026-03-02 07:29:21 +01:00
|
|
|
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /relay .
|
|
|
|
|
|
|
|
|
|
FROM scratch
|
2026-04-24 09:46:45 +02:00
|
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
2026-03-02 07:29:21 +01:00
|
|
|
COPY --from=build /relay /relay
|
2026-04-22 14:57:41 +02:00
|
|
|
VOLUME /data
|
2026-03-02 07:29:21 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
|
ENV GOMEMLIMIT=64MiB
|
|
|
|
|
ENTRYPOINT ["/relay"]
|