diff --git a/Dockerfile b/Dockerfile index eaa2b3d..69a4553 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ WORKDIR /app COPY go.* ./ RUN go mod download COPY . . -RUN go build -o api main.go +RUN go build -ldflags="-s -w" -o api main.go FROM alpine:3.14 AS runner RUN addgroup --system app