From 480ce9bcacb9d891446181734c7e7c0961f8291c Mon Sep 17 00:00:00 2001 From: LonerDan Date: Wed, 20 Sep 2023 17:04:02 +0200 Subject: [PATCH] Parametrize alpine version in Dockerfile Set the version of the Alpine base container as an argument with a default value to allow easy substitution without the need to modify the upstream file. This can be leveraged both from docker command line (`docker build --build-arg ALPINE_VERSION= `) and from docker-compose files. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2ad50e6a..b3aa0945 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ -FROM alpine:3.17 +ARG ALPINE_VERSION=3.17 +FROM alpine:${ALPINE_VERSION} RUN apk --no-cache add -f \ openssl \