Document engine redistribution requirements; exclude upstream engine assets and keep the viewer disabled by default.
19 lines
773 B
Docker
19 lines
773 B
Docker
# The relay image contains no browser engine. Mount the independently verified
|
|
# fixed Gecko distribution read-only at /gecko (see docs/operations/gecko-relay.md).
|
|
FROM golang:1.25-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY internal/geckorelay ./internal/geckorelay
|
|
COPY cmd/gecko-relay ./cmd/gecko-relay
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /gecko-relay ./cmd/gecko-relay
|
|
|
|
FROM scratch
|
|
COPY --from=build /gecko-relay /usr/local/bin/gecko-relay
|
|
COPY --from=build /usr/local/go/LICENSE /licenses/Go.txt
|
|
COPY --from=build /go/pkg/mod/golang.org/x/net@v0.35.0/LICENSE /licenses/golang-x-net.txt
|
|
COPY internal/geckorelay/NOTICE.txt /licenses/NOTICE.txt
|
|
USER 10001:10001
|
|
EXPOSE 3012
|
|
ENTRYPOINT ["/usr/local/bin/gecko-relay"]
|