strip debug symbol when building
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9690330cc5
commit
50fc4c1681
@ -3,7 +3,7 @@ WORKDIR /app
|
|||||||
COPY go.* ./
|
COPY go.* ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -o api main.go
|
RUN go build -ldflags="-s -w" -o api main.go
|
||||||
|
|
||||||
FROM alpine:3.14 AS runner
|
FROM alpine:3.14 AS runner
|
||||||
RUN addgroup --system app
|
RUN addgroup --system app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user