Luigit
repositories / bugabinga.net

bugabinga.net

personal infrastructure for bugabinga!

owned by admin

services/luci/Containerfile

Raw
FROM docker.io/library/golang:1.26 AS builder

WORKDIR /src/luci
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/luci ./cmd/luci

FROM registry.fedoraproject.org/fedora:43

RUN dnf -y install \
    ca-certificates \
    git \
    openssh-server \
    podman \
    skopeo \
    zstd \
  && dnf clean all \
  && usermod --password 'x' root

COPY --from=builder /out/luci /usr/local/bin/luci
COPY entrypoint.sh /usr/local/bin/luci-entrypoint
RUN chmod 0755 /usr/local/bin/luci-entrypoint

EXPOSE 8080 2223
CMD ["/usr/local/bin/luci-entrypoint"]