1
0
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:
Spaceface16518 2021-01-27 12:30:45 -06:00
parent 247d2b18ec
commit 90eda5639f

View File

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