Dockerfile 488 B

12345678910111213141516171819
  1. FROM golang:1.6
  2. RUN apt-get update && \
  3. apt-get install -y apache2-utils && \
  4. rm -rf /var/lib/apt/lists/*
  5. ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
  6. ENV DOCKER_BUILDTAGS include_oss include_gcs
  7. WORKDIR $DISTRIBUTION_DIR
  8. COPY . $DISTRIBUTION_DIR
  9. COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
  10. RUN make PREFIX=/go clean binaries
  11. VOLUME ["/var/lib/registry"]
  12. EXPOSE 5000
  13. ENTRYPOINT ["registry"]
  14. CMD ["serve", "/etc/docker/registry/config.yml"]