feat: add htpasswd support to registry

- Add Dockerfile with apache2-utils
- Update docker-compose to use local build
- Keep setup minimal while enabling password management
This commit is contained in:
2025-11-05 04:41:30 -08:00
parent fa2df647c6
commit 8e8489060c
2 changed files with 7 additions and 1 deletions

6
Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM registry:2
# Install Apache utilities for htpasswd management
RUN apt-get update && apt-get install -y \
apache2-utils \
&& rm -rf /var/lib/apt/lists/*

View File

@@ -2,7 +2,7 @@ version: '3.8'
services:
registry:
image: registry:2
build: .
container_name: registry
restart: unless-stopped
expose: