mirror of
https://github.com/project-zot/zot.git
synced 2024-12-30 22:34:13 -05:00
ci/cd: keep docker and stacker builds files consistent
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
f99fa37623
commit
d1a80ba9b7
3 changed files with 6 additions and 6 deletions
|
@ -24,9 +24,9 @@ RUN echo '{\n\
|
||||||
# ---
|
# ---
|
||||||
FROM scratch AS final
|
FROM scratch AS final
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
COPY --from=builder /go/src/github.com/anuvu/zot/bin/zot /zot
|
COPY --from=builder /go/src/github.com/anuvu/zot/bin/zot /usr/bin/zot
|
||||||
COPY --from=builder /go/src/github.com/anuvu/zot/config.json /etc/zot/config.json
|
COPY --from=builder /go/src/github.com/anuvu/zot/config.json /etc/zot/config.json
|
||||||
ENTRYPOINT ["/zot"]
|
ENTRYPOINT ["/usr/bin/zot"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
VOLUME ["/var/lib/registry"]
|
VOLUME ["/var/lib/registry"]
|
||||||
CMD ["serve", "/etc/zot/config.json"]
|
CMD ["serve", "/etc/zot/config.json"]
|
||||||
|
|
|
@ -21,9 +21,9 @@ storage:\n\
|
||||||
# ---
|
# ---
|
||||||
FROM scratch AS final
|
FROM scratch AS final
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
COPY --from=builder /go/src/github.com/anuvu/zot/bin/zot /zot
|
COPY --from=builder /go/src/github.com/anuvu/zot/bin/zot /usr/bin/zot
|
||||||
COPY --from=builder /go/src/github.com/anuvu/zot/config.yml /etc/zot/config.yml
|
COPY --from=builder /go/src/github.com/anuvu/zot/config.yml /etc/zot/config.yml
|
||||||
ENTRYPOINT ["/zot"]
|
ENTRYPOINT ["/usr/bin/zot"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
VOLUME ["/var/lib/registry"]
|
VOLUME ["/var/lib/registry"]
|
||||||
CMD ["serve", "/etc/zot/config.yml"]
|
CMD ["serve", "/etc/zot/config.yml"]
|
||||||
|
|
|
@ -24,9 +24,9 @@ RUN echo '{\n\
|
||||||
# ---
|
# ---
|
||||||
FROM scratch AS final
|
FROM scratch AS final
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||||
COPY --from=builder /go/src/github.com/anuvu/zot/bin/zot-minimal /zot
|
COPY --from=builder /go/src/github.com/anuvu/zot/bin/zot-minimal /usr/bin/zot
|
||||||
COPY --from=builder /go/src/github.com/anuvu/zot/config.json /etc/zot/config.json
|
COPY --from=builder /go/src/github.com/anuvu/zot/config.json /etc/zot/config.json
|
||||||
ENTRYPOINT ["/zot"]
|
ENTRYPOINT ["/usr/bin/zot"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
VOLUME ["/var/lib/registry"]
|
VOLUME ["/var/lib/registry"]
|
||||||
CMD ["serve", "/etc/zot/config.json"]
|
CMD ["serve", "/etc/zot/config.json"]
|
||||||
|
|
Loading…
Reference in a new issue