From b1a92961474336365c0e20a242a43c7b035c9a4e Mon Sep 17 00:00:00 2001 From: izaac49 Date: Thu, 12 Feb 2026 21:29:27 +0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index c9c900242..e53b5b86b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,14 @@ -# Build stage FROM golang:1.25.7 AS builder WORKDIR /app - -# Copy go.mod and go.sum first for dependency caching -COPY go.mod go.sum ./ -RUN go mod download - -# Copy the rest of the source code COPY . . -# Build the binary from cmd/picoclaw +# Force Go proxy +ENV GOPROXY=https://proxy.golang.org,direct + +RUN go mod tidy RUN go build -tags netgo -ldflags "-s -w" -o app ./cmd/picoclaw -# Final stage: minimal runtime image FROM debian:bookworm-slim WORKDIR /app COPY --from=builder /app/app .