mirror of
https://github.com/docker/cli.git
synced 2026-10-21 13:22:32 -04:00
Signed-off-by: John Starks <jostarks@microsoft.com> Upstream-commit: 9c902364fb97faeca8257ed683bdef27615d9f1f Component: engine
19 lines
447 B
Docker
19 lines
447 B
Docker
FROM golang:1.6-alpine
|
|
|
|
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 set -ex \
|
|
&& apk add --no-cache make git
|
|
|
|
RUN make PREFIX=/go clean binaries
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["registry"]
|
|
CMD ["serve", "/etc/docker/registry/config.yml"]
|