mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-02 21:29:24 +00:00
Make geo database usage optional (#39)
This commit is contained in:
@ -15,6 +15,8 @@ RUN --mount=type=cache,target=/go/pkg/mod/ apk --no-cache add make && make build
|
||||
|
||||
FROM builder AS build-prod-app
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates
|
||||
# hadolint ignore=DL3018
|
||||
RUN --mount=type=cache,target=/go/pkg/mod/ apk --no-cache add make upx \
|
||||
&& make build \
|
||||
&& upx --best --lzma whatismyip
|
||||
|
Reference in New Issue
Block a user