Files
mpc/Dockerfile
T
zeekay 75a30ce8ca fix: go.mod deps, white-label branding, cleanup stale workflows
- Fix go.mod: move chi, cors, jwt, pgx from indirect to direct deps
- Add jackc/puddle/v2 and golang.org/x/sync as indirect deps
- Add Dockerfile ARG TARGETARCH for multi-arch builds
- Add white-label hostname branding (mpc.lux.network vs cloud.lux.network)
- Add imagePullSecrets to K8s deployments
- Remove stale docker-publish.yml and docker.yml workflows
- Remove Dockerfile.go123 placeholder
- Fix release.yml Go version to 1.25.5
2025-12-27 13:24:52 -08:00

16 lines
416 B
Docker

FROM golang:1.25-alpine AS builder
ARG TARGETARCH
RUN apk add --no-cache git make
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -o /mpcd ./cmd/mpcd/
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=builder /mpcd /usr/local/bin/mpcd
COPY --from=builder /src/pkg/db/migrations /migrations
EXPOSE 8081
ENTRYPOINT ["mpcd"]