From 565904ceedd1e53011506c4b11199c34ab8d7468 Mon Sep 17 00:00:00 2001 From: Alexandr Kolesov Date: Sat, 24 Jan 2026 00:53:28 +0400 Subject: [PATCH] Update Dockerfile to enhance build process - Added progress output for dependency download with 'go mod download -x'. - Set GOPROXY environment variable for improved module fetching. - Changed build command to include verbose output during application build. --- server/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 1b78162..9468b75 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -5,13 +5,16 @@ WORKDIR /app # Copy go mod files COPY go.mod go.sum ./ -RUN go mod download + +# Download dependencies with progress output +ENV GOPROXY=https://proxy.golang.org,direct +RUN go mod download -x # Copy source code COPY . . # Build the application (CGO disabled for pure Go build) -RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -o /app/cryptd-server ./cmd/server +RUN CGO_ENABLED=0 GOOS=linux go build -v -a -ldflags="-s -w" -o /app/cryptd-server ./cmd/server # Runtime stage FROM alpine:latest