1
0
Fork 0

fix build command for new commits
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniel Wolf 2022-05-30 17:46:42 -04:00
parent 53e5802aa5
commit 357daa210c
Signed by: nephatrine
GPG Key ID: 59D70EC2E4AAB4D0
1 changed files with 2 additions and 4 deletions

View File

@ -11,9 +11,7 @@ RUN git -C /usr/src clone -b "$REGCLIENT_VERSION" --single-branch --depth=1 http
RUN echo "====== COMPILE REGISTRY ======" \
&& cd /usr/src/github.com/distribution/distribution \
&& go build -i . \
&& make build -j4 \
&& make binaries -j4
&& go build -trimpath -ldflags "-s -w" -o /usr/bin/registry ./cmd/registry
RUN echo "====== COMPILE REGCLIENT ======" \
&& cd /usr/src/regclient \
&& make binaries -j4
@ -22,7 +20,7 @@ FROM nephatrine/alpine-s6:latest
LABEL maintainer="Daniel Wolf <nephatrine@gmail.com>"
RUN mkdir /etc/registry
COPY --from=builder /usr/src/github.com/distribution/distribution/bin/ /usr/bin/
COPY --from=builder /usr/bin/registry /usr/bin/registry
COPY --from=builder /usr/src/regclient/bin/ /usr/local/bin/
COPY --from=builder /usr/src/github.com/distribution/distribution/cmd/registry/config-example.yml /etc/registry/config-example.yml
COPY override /