2025-11-05 09:28:49 -08:00
|
|
|
FROM registry:2
|
2025-11-05 04:41:30 -08:00
|
|
|
|
2025-11-05 09:27:20 -08:00
|
|
|
# Use Alpine's apk package manager to install apache2-utils
|
2025-11-05 09:28:49 -08:00
|
|
|
RUN apk --no-cache add apache2-utils
|
|
|
|
|
|
2025-11-05 09:43:01 -08:00
|
|
|
# Create config directory
|
|
|
|
|
RUN mkdir -p /etc/docker/registry
|
|
|
|
|
|
|
|
|
|
# Create config file with proper YAML formatting
|
|
|
|
|
RUN printf "version: 0.1\nstorage:\n filesystem:\n rootdirectory: /var/lib/registry\nhttp:\n addr: :5000\n" > /etc/docker/registry/config.yml
|