Tinkerbell.Sandbox/deploy/registry/Dockerfile
Gianluca Arbezzano 6ede8cb2e3 initial commit
2020-08-20 13:53:27 +02:00

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