From 00a3f4d1760afe357fc453fed519e1b499b34226 Mon Sep 17 00:00:00 2001 From: Johanna Dorothea Reichmann Date: Thu, 19 Oct 2023 11:58:18 +0200 Subject: [PATCH] chore: crop v from tag for version argument --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 717835e..0211737 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ FROM docker.io/alpine:3.18 ARG VERSION +RUN apk --no-cache add bash +SHELL ["/bin/bash", "-c"] RUN apk --no-cache add \ - pdns=${VERSION} \ - pdns-backend-pgsql=${VERSION} \ - pdns-tools \ - libcap + pdns=${VERSION#v} \ + pdns-backend-pgsql=${VERSION#v} \ + pdns-tools \ + libcap RUN setcap 'cap_net_bind_service=+eip' /usr/sbin/pdns_server