From 8e8489060cf09522a50ab216d6d41e27e5440ff6 Mon Sep 17 00:00:00 2001 From: renzaspiras Date: Wed, 5 Nov 2025 04:41:30 -0800 Subject: [PATCH] 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 --- Dockerfile | 6 ++++++ docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..81c01b0 --- /dev/null +++ b/Dockerfile @@ -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/* \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 0da0ca7..8df99cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: registry: - image: registry:2 + build: . container_name: registry restart: unless-stopped expose: