Compare commits
9 Commits
85ffa579e4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d793a800ae | |||
| d53aab56df | |||
| 7ead84ba6b | |||
| 644ee7b262 | |||
| b23846cbcf | |||
| fbd72c7748 | |||
| 893f5b50ef | |||
| c364c6da30 | |||
| 36c854bdf9 |
12
Dockerfile
12
Dockerfile
@@ -1,6 +1,10 @@
|
||||
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/*
|
||||
# Use Alpine's apk package manager to install apache2-utils
|
||||
RUN apk --no-cache add apache2-utils
|
||||
|
||||
# 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
|
||||
@@ -9,9 +9,9 @@ services:
|
||||
- "5000"
|
||||
volumes:
|
||||
- registry-data:/var/lib/registry
|
||||
- ./config.yml:/etc/docker/registry/config.yml
|
||||
networks:
|
||||
- registry-network
|
||||
command: ["/etc/docker/registry/config.yml"]
|
||||
|
||||
networks:
|
||||
registry-network:
|
||||
|
||||
Reference in New Issue
Block a user