From 37d3c5e0e2cc17e59e9e1d95ebe359d58d8955ae Mon Sep 17 00:00:00 2001 From: izaac49 Date: Thu, 12 Feb 2026 21:33:33 +0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e53b5b86b..bb7f02438 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,21 @@ +# Build stage FROM golang:1.25.7 AS builder WORKDIR /app + +# Copy everything COPY . . -# Force Go proxy +# Force proxy ENV GOPROXY=https://proxy.golang.org,direct +# Fetch deps RUN go mod tidy + +# Build binary from cmd/picoclaw RUN go build -tags netgo -ldflags "-s -w" -o app ./cmd/picoclaw +# Final stage FROM debian:bookworm-slim WORKDIR /app COPY --from=builder /app/app .