0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

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

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