Merge pull request #321 from Spaceface16518/docker-min

Reduce size of Docker image by stripping debug symbols
This commit is contained in:
Zack 2021-02-01 06:55:08 -08:00 committed by GitHub
commit de56d2f6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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