From c364c6da30e1be970eb3477d416d906a8991a4c8 Mon Sep 17 00:00:00 2001 From: renzaspiras Date: Wed, 5 Nov 2025 09:23:59 -0800 Subject: [PATCH] fix: use apk for Alpine-based registry image - Replace apt-get with apk for Alpine Linux - Simplify package installation command --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b4f989..ac7abf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,4 @@ FROM registry:2 -USER root -# Install Apache utilities for htpasswd management -RUN set -ex \ - && apt-get update \ - && apt-get install -y apache2-utils \ - && rm -rf /var/lib/apt/lists/* - -USER nobody \ No newline at end of file +# The registry:2 image is based on Alpine, so we use apk +RUN apk add --no-cache apache2-utils \ No newline at end of file