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:
6
Dockerfile
Normal file
6
Dockerfile
Normal 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/*
|
||||
@@ -2,7 +2,7 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
registry:
|
||||
image: registry:2
|
||||
build: .
|
||||
container_name: registry
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
|
||||
Reference in New Issue
Block a user