8 lines
229 B
Docker
8 lines
229 B
Docker
|
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
|
||
|
EXPOSE 443
|