Skip to content

Commit

Permalink
Updated the dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterclaerhout committed May 22, 2020
1 parent 69c1c4c commit 6956f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Makefile
geoip-server
database.mmdb
database.mmdb.md5
database.mmdb.sha256
db-downloader
GeoLite2-City.mmdb
GeoLite2-City.mmdb.md5
GeoLite2-City.mmdb.sha256
build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM mod-download AS builder
ADD . /app
WORKDIR /app

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -a --ldflags '-extldflags -static' -o geoip-server github.com/pieterclaerhout/go-geoip/v2/cmd/geoip-server
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -trimpath -a --ldflags '-extldflags -static -s -w' -o geoip-server github.com/pieterclaerhout/go-geoip/v2/cmd/geoip-server

# STAGE 3 - FINAL

Expand Down

0 comments on commit 6956f73

Please sign in to comment.