-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
FROM golang:alpine AS build | ||
FROM golang:1.14 AS build | ||
|
||
RUN apk add --no-cache -U make git | ||
COPY . /src/project | ||
WORKDIR /src/project | ||
|
||
RUN export CGO_ENABLED=0 &&\ | ||
export GOPROXY=https://goproxy.io &&\ | ||
make &&\ | ||
cp cmd/registry/registry / | ||
RUN cp etc/registry.sample.conf /registry.conf | ||
|
||
FROM golang:alpine | ||
|
||
RUN apk add -U git | ||
cp cmd/registry/registry /registry &&\ | ||
cp etc/registry.sample.conf /registry.conf | ||
|
||
FROM debian:10 | ||
RUN apt-get update && apt-get install -y ca-certificates | ||
COPY --from=build /registry /registry | ||
COPY --from=build /registry.conf /etc/registry.conf | ||
|
||
VOLUME /var/log/registry | ||
VOLUME /var/opt/registry | ||
|
||
EXPOSE 8000 | ||
|
||
ENTRYPOINT ["/registry -config /etc/registry.conf"] | ||
CMD [] | ||
CMD ["/registry", "-config", "/etc/registry.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters