fix: use apk for Alpine-based registry image

- Replace apt-get with apk for Alpine Linux
- Simplify package installation command
This commit is contained in:
2025-11-05 09:23:59 -08:00
parent 36c854bdf9
commit c364c6da30

View File

@@ -1,10 +1,4 @@
FROM registry:2 FROM registry:2
USER root # The registry:2 image is based on Alpine, so we use apk
# Install Apache utilities for htpasswd management RUN apk add --no-cache apache2-utils
RUN set -ex \
&& apt-get update \
&& apt-get install -y apache2-utils \
&& rm -rf /var/lib/apt/lists/*
USER nobody