Make go binaries lighter
This commit is contained in:
parent
684e2e7fa4
commit
38180f8afd
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ COPY htdocs/ ./htdocs/
|
|||
|
||||
RUN go generate -v && \
|
||||
go get -d -v && \
|
||||
go build -v
|
||||
go build -v -ldflags="-s -w"
|
||||
|
||||
|
||||
FROM alpine
|
||||
|
|
|
|||
Reference in a new issue