FROM registry:2.7.1 RUN apk add --no-cache --update curl apache2-utils ARG REGISTRY_USERNAME ARG REGISTRY_PASSWORD RUN mkdir -p /certs /auth RUN htpasswd -Bbn ${REGISTRY_USERNAME} ${REGISTRY_PASSWORD} > /auth/htpasswd ADD config.yml /etc/docker/registry/config.yml EXPOSE 443