Skip to content

Commit

Permalink
fix gopath reference after base image update
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Apr 26, 2022
1 parent 4c5675e commit d81406f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions registry-windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.18.1 AS build
#FROM golang:1.16.15-nanoserver AS build
#FROM golang:1.18.1-nanoserver AS build

ENV GO111MODULE=auto

Expand All @@ -22,5 +22,5 @@ EXPOSE 5000
ENTRYPOINT ["\\registry.exe"]
CMD ["serve", "/config/config.yml"]

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

0 comments on commit d81406f

Please sign in to comment.