GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opendectcell-controller/Dockerfile at main · openDECTcell/opendectcell-controller Expand file tree/ Copy pathDockerfileMore file actions 40 lines (38 loc) · 2.07 KB / Copy pathDockerfileFile metadata and controls40 lines (38 loc) · 2.07 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 # SPDX-License-Identifier: AGPL-3.0-or-later # Multi-stage build: a static binary on a distroless, non-root base. # By default the build is CGO_ENABLED=0 and the binary has no DECT core. # --build-arg LIBOPENDECTCELL=1 (needs the openDECTcell submodule checked out) links # libopendectcell with cgo, statically, and turns the DECT core on (C3). FROM golang:1.27.4-bookworm@sha256:4fa7c968ba93f1635670522dbb01a2c78150443e1385746924566079f36570ea AS build ARG VERSION=dev ARG LIBOPENDECTCELL=0 WORKDIR /src COPY go.mod go.sum ./ RUN go mod download COPY cmd ./cmd COPY internal ./internal COPY third_party ./third_party RUN if [ "$LIBOPENDECTCELL" = 1 ]; then \ test -f third_party/opendectcell/src/libopendectcell/dect_base.c || { echo "LIBOPENDECTCELL=1 needs the opendectcell submodule"; exit 1; }; \ CGO_ENABLED=1 go build -trimpath -tags libopendectcell,netgo,osusergo \ -ldflags "-s -w -linkmode external -extldflags -static -X main.version=${VERSION}" \ -o /out/opendectcell-controller ./cmd/opendectcell-controller; \ else \ CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=${VERSION}" \ -o /out/opendectcell-controller ./cmd/opendectcell-controller; \ fi \ && mkdir -p /out/secrets /out/dbsecrets /out/tmp FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab COPY --from=build /out/opendectcell-controller /usr/local/bin/opendectcell-controller # A named volume mounted here starts out owned by the non-root user, so # `init-secrets` can write to it. /dbsecrets holds the database's administrative # credentials; only the database, `init` and `migrate` mount it. COPY --from=build --chown=65532:65532 /out/secrets /secrets COPY --from=build --chown=65532:65532 /out/dbsecrets /dbsecrets COPY --from=build --chown=65532:65532 /out/tmp /tmp USER 65532:65532 EXPOSE 8080 7300 HEALTHCHECK --interval=10s --timeout=4s --start-period=20s --retries=3 \ CMD ["/usr/local/bin/opendectcell-controller", "healthcheck"] ENTRYPOINT ["/usr/local/bin/opendectcell-controller"] CMD ["serve"] |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |