chore: omit debug information release builds (#185)

This commit is contained in:
Keith Gaughan
2024-09-08 21:34:26 +02:00
committed by GitHub
parent 4e87e6a613
commit 189af88bc8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ COPY ./go.sum ./
RUN go mod download
COPY . /webdav/
RUN go build -o main -ldflags="-X 'github.com/hacdias/webdav/v5/cmd.version=$VERSION'" .
RUN go build -o main -trimpath -ldflags="-s -w -X 'github.com/hacdias/webdav/v5/cmd.version=$VERSION'" .
FROM scratch