Skip to content

Commit 9e98440

Browse files
committed
Use fixed versions for apk in build
Reduces possibility of packages and CLI interface breaking in the future
1 parent 21e9410 commit 9e98440

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ARG ALPINE_VERSION=3.17
22
ARG GO_VERSION=1.19
33
ARG COMPOSE_VERSION=2.16.0
4+
ARG DOCKER_VERSION=20.10.24-r2
5+
ARG CURL_VERSION=8.9.0-r0
46

57
FROM golang:${GO_VERSION} AS builder
68
RUN export GOBIN=$HOME/work/bin
@@ -13,6 +15,8 @@ RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o main .
1315

1416
FROM alpine:${ALPINE_VERSION}
1517
ARG COMPOSE_VERSION
18+
ARG DOCKER_VERSION
19+
ARG CURL_VERSION
1620
ARG BUILD_DATE
1721
ARG VCS_REF
1822
ARG TARGETPLATFORM
@@ -22,7 +26,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
2226
org.label-schema.vcs-ref=$VCS_REF \
2327
org.label-schema.vcs-url="https://github.com/virtualzone/compose-updater" \
2428
org.label-schema.schema-version="1.0"
25-
RUN apk --no-cache add docker curl
29+
RUN apk --no-cache add docker=$DOCKER_VERSION curl=$CURL_VERSION
2630
RUN \
2731
case ${TARGETPLATFORM} in \
2832
"linux/amd64") DOWNLOAD_ARCH="x86_64" ;; \

0 commit comments

Comments
 (0)