mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-01 23:19:26 +00:00
Bump go to 1.24
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
FROM golang:1.23-alpine AS builder
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
ARG ARG_VERSION
|
||||
ENV VERSION=$ARG_VERSION
|
||||
@ -15,9 +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 \
|
||||
RUN apk --no-cache update && apk add --no-cache ca-certificates make upx \
|
||||
&& update-ca-certificates \
|
||||
&& make build \
|
||||
&& upx --best --lzma whatismyip
|
||||
|
||||
|
Reference in New Issue
Block a user