fix: explicit alpine version, so dependabot detects it (#2061)

This commit is contained in:
DrPsychick
2025-08-13 00:29:49 +02:00
committed by GitHub
parent 086612a044
commit 5b7c76c159
2 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -21,7 +21,11 @@ updates:
target-branch: main target-branch: main
- package-ecosystem: docker - package-ecosystem: docker
directories: directories:
- /
- /cmd/proxy - /cmd/proxy
schedule: schedule:
interval: weekly interval: weekly
commit-message:
prefix: update-docker-image
include: scope
open-pull-requests-limit: 2
target-branch: main
+1 -2
View File
@@ -6,7 +6,6 @@
# See project Makefile if using make. # See project Makefile if using make.
# See docker --build-arg if building directly. # See docker --build-arg if building directly.
ARG GOLANG_VERSION=1.23.5 ARG GOLANG_VERSION=1.23.5
ARG ALPINE_VERSION=3.20
FROM golang:${GOLANG_VERSION}-alpine AS builder FROM golang:${GOLANG_VERSION}-alpine AS builder
@@ -27,7 +26,7 @@ RUN DATE="$(date -u +%Y-%m-%d-%H:%M:%S-%Z)" && \
-ldflags "-X github.com/gomods/athens/pkg/build.version=$VERSION -X github.com/gomods/athens/pkg/build.buildDate=$DATE -s -w" \ -ldflags "-X github.com/gomods/athens/pkg/build.version=$VERSION -X github.com/gomods/athens/pkg/build.buildDate=$DATE -s -w" \
-o /bin/athens-proxy ./cmd/proxy -o /bin/athens-proxy ./cmd/proxy
FROM alpine:${ALPINE_VERSION} FROM alpine:3.20
ARG TARGETARCH ARG TARGETARCH
ENV GOROOT="/usr/local/go" \ ENV GOROOT="/usr/local/go" \