Skip to content

Commit

Permalink
Update to distribution v3 alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Sep 15, 2024
1 parent 190e2af commit 23ad2b3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions registry-windows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ ENV GO111MODULE=auto
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ENV DOCKER_BUILDTAGS include_oss include_gcs
ENV DISTRIBUTION_VERSION v2.8.3
ENV DISTRIBUTION_VERSION v3.0.0-alpha.1

RUN mkdir src\github.com\docker ; \
cd src\github.com\docker ; \
git clone -q https://github.com/docker/distribution ; \
RUN mkdir src\github.com\distribution ; \
cd src\github.com\distribution ; \
git clone -q https://github.com/distribution/distribution ; \
cd distribution ; \
git checkout -q $env:DISTRIBUTION_VERSION ; \
cd cmd\registry ; \
go build -o registry.exe
go build -o registry.exe ; \
dir

FROM mcr.microsoft.com/windows/nanoserver:ltsc2022
EXPOSE 5000

ENTRYPOINT ["\\registry.exe"]
CMD ["serve", "/config/config.yml"]

COPY --from=build /go/src/github.com/docker/distribution/cmd/registry/registry.exe /registry.exe
COPY --from=build /go/src/github.com/distribution/distribution/cmd/registry/registry.exe /registry.exe
COPY config.yml /config/config.yml

0 comments on commit 23ad2b3

Please sign in to comment.