mirror of
https://github.com/luxfi/mpc.git
synced 2026-09-24 00:26:24 +00:00
- 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
16 lines
416 B
Docker
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"]
|