1
0
mirror of https://github.com/distribution/distribution-library-image synced 2024-11-12 05:15:50 +01:00
distribution-library-image/amd64/Dockerfile
daniel sutton 76ba0b0619 Fix security issues: bump alpine to 3.14
Signed-off-by: daniel sutton <daniel@ducksecops.uk>
2021-11-14 23:52:37 +00:00

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"]