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:
10
Dockerfile
10
Dockerfile
@@ -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
|
|
||||||
Reference in New Issue
Block a user