mirror of
https://github.com/Luzifer/gcr-clean.git
synced 2024-12-23 11:51:19 +00:00
22 lines
481 B
Text
22 lines
481 B
Text
|
FROM golang:1.10-alpine
|
||
|
|
||
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
||
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
||
|
|
||
|
ARG GOOS=linux
|
||
|
ARG GOARCH=amd64
|
||
|
|
||
|
RUN set -ex \
|
||
|
&& apk add --no-cache make git
|
||
|
|
||
|
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"]
|