Tinkerbell.Sandbox/deploy/registry/Dockerfile

8 lines
229 B
Docker
Raw Normal View History

2020-08-20 11:53:27 +00:00
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