fix: update Dockerfile for Go 1.25 and correct binary paths

- Upgrade base image from golang:1.24.5-alpine to golang:1.25-alpine
  to match go.mod requirement (go 1.25.5)
- Fix binary build paths: use ./cmd/mpcd instead of non-existent ./cmd/lux-mpc
- Remove non-existent lux-mpc-bridge binary
- Update CMD to use mpcd binary
This commit is contained in:
2026-02-05 15:52:00 -08:00
parent f8f75c732b
commit 46b9d2c13e
+4 -6
View File
@@ -1,5 +1,5 @@
# Build stage
FROM golang:1.24.5-alpine AS builder
FROM golang:1.25-alpine AS builder
RUN apk add --no-cache git make
@@ -15,9 +15,8 @@ RUN go mod download
COPY . .
# Build the binaries
RUN go build -o lux-mpc ./cmd/lux-mpc
RUN go build -o mpcd ./cmd/mpcd
RUN go build -o lux-mpc-cli ./cmd/lux-mpc-cli
RUN go build -o lux-mpc-bridge ./cmd/lux-mpc-bridge || true
# Runtime stage
FROM alpine:latest
@@ -27,9 +26,8 @@ RUN apk add --no-cache ca-certificates curl bash
WORKDIR /app
# Copy binaries from builder
COPY --from=builder /build/lux-mpc /usr/local/bin/
COPY --from=builder /build/mpcd /usr/local/bin/
COPY --from=builder /build/lux-mpc-cli /usr/local/bin/
COPY --from=builder /build/lux-mpc-bridge /usr/local/bin/
# Copy config templates
COPY config.yaml.template /app/
@@ -46,4 +44,4 @@ HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# Default command
CMD ["lux-mpc", "start", "--config", "/app/config.yaml"]
CMD ["mpcd", "start", "--config", "/app/config.yaml"]