forked from TrueCloudLab/distribution
77e69b9cf3
Signed-off-by: Olivier Gambier <olivier@docker.com>
18 lines
488 B
Docker
18 lines
488 B
Docker
FROM golang:1.6
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y apache2-utils && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
COPY . $DISTRIBUTION_DIR
|
|
COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
|
|
RUN make PREFIX=/go clean binaries
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["registry"]
|
|
CMD ["serve", "/etc/docker/registry/config.yml"]
|