mirror of
https://github.com/schollz/croc.git
synced 2024-11-27 12:34:19 +03:00
Strip go binary in docker build
This commit is contained in:
parent
247d2b18ec
commit
90eda5639f
@ -2,7 +2,7 @@ FROM golang:1.15-alpine as builder
|
||||
RUN apk add --no-cache git
|
||||
WORKDIR /go/croc
|
||||
COPY . .
|
||||
RUN go build -v
|
||||
RUN go build -v -ldflags="-s -w"
|
||||
|
||||
FROM alpine:latest
|
||||
EXPOSE 9009
|
||||
|
Loading…
Reference in New Issue
Block a user