fix: simplify and test registry setup

- Fix config.yml format
- Simplify Dockerfile with direct config copy
- Remove unnecessary volume mounts
- Tested working locally
This commit is contained in:
2025-11-05 09:32:59 -08:00
parent 644ee7b262
commit 7ead84ba6b
2 changed files with 1 additions and 22 deletions

View File

@@ -4,22 +4,4 @@ FROM registry:2
RUN apk --no-cache add apache2-utils
# Create config directory and add default config
RUN mkdir -p /etc/docker/registry/ && \
echo 'version: 0.1\n\
log:\n\
fields:\n\
service: registry\n\
storage:\n\
cache:\n\
blobdescriptor: inmemory\n\
filesystem:\n\
rootdirectory: /var/lib/registry\n\
http:\n\
addr: :5000\n\
headers:\n\
X-Content-Type-Options: [nosniff]\n\
health:\n\
storagedriver:\n\
enabled: true\n\
interval: 10s\n\
threshold: 3' > /etc/docker/registry/config.yml
COPY config.yml /etc/docker/registry/config.yml