16 lines
424 B
Docker
16 lines
424 B
Docker
|
|
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/*
|
||
|
|
|
||
|
|
# Create auth directory
|
||
|
|
RUN mkdir -p /etc/docker/registry/auth
|
||
|
|
|
||
|
|
# Copy custom entrypoint script
|
||
|
|
COPY entrypoint.sh /usr/local/bin/
|
||
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||
|
|
|
||
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||
|
|
CMD ["/etc/docker/registry/config.yml"]
|