Update Dockerfile for multi-platform support and enhance nginx registry script with volume and environment variable configurations

This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-04-06 04:59:49 +03:00
parent ce44d565c8
commit b970b2f593
4 changed files with 9 additions and 5 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
#!/bin/sh
apt install -y docker.io apache2-utils certbot python3-certbot-nginx nginx
docker run -d -p 5000:5000 --name registry --restart always registry:latest
docker run -d -p 5000:5000 --name registry --restart always \
-v registry-data:/var/lib/registry \
-e REGISTRY_STORAGE_DELETE_ENABLED=true \
registry:latest
# create user for docker auth
cd /etc/nginx