diff --git a/Dockerfile b/Dockerfile index bb7f02438..93beb0761 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,19 +3,19 @@ FROM golang:1.25.7 AS builder WORKDIR /app +# Force Go to use the public proxy +ENV GOPROXY=https://proxy.golang.org,direct + # Copy everything COPY . . -# Force proxy -ENV GOPROXY=https://proxy.golang.org,direct - -# Fetch deps +# Clean up and fetch dependencies RUN go mod tidy # Build binary from cmd/picoclaw RUN go build -tags netgo -ldflags "-s -w" -o app ./cmd/picoclaw -# Final stage +# Final stage: minimal runtime image FROM debian:bookworm-slim WORKDIR /app COPY --from=builder /app/app .