strip debug symbol when building
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
YuukanOO 2023-05-01 16:22:28 +02:00
parent 9690330cc5
commit 50fc4c1681

View File

@ -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