From 90eda5639fd1a561c64ebf8c27e2044f5e2b57e2 Mon Sep 17 00:00:00 2001 From: Spaceface16518 Date: Wed, 27 Jan 2021 12:30:45 -0600 Subject: [PATCH] Strip go binary in docker build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 08917ed..3595f90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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