mirror of
https://github.com/distribution/distribution-library-image
synced 2024-11-12 05:15:50 +01:00
76ba0b0619
Signed-off-by: daniel sutton <daniel@ducksecops.uk>
18 lines
360 B
Docker
18 lines
360 B
Docker
# Build a minimal distribution container
|
|
|
|
FROM alpine:3.14
|
|
|
|
RUN set -ex \
|
|
&& apk add --no-cache ca-certificates
|
|
|
|
COPY ./registry /bin/registry
|
|
COPY ./config-example.yml /etc/docker/registry/config.yml
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["/etc/docker/registry/config.yml"]
|