From f44af70787aee0f28542afbd12dbcef8f7b8baa0 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Sat, 7 Jun 2025 03:35:01 +0700 Subject: [PATCH] updated for static build --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d6c08bd..0683193 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,12 @@ WORKDIR /app COPY . . -RUN go mod tidy && go build - +RUN apk update && \ + apk upgrade && \ + apk add binutils && \ + go mod tidy && \ + go build && \ + strip auth_service FROM alpine:latest AS build-release-stage WORKDIR /data