From 4bf708caffa7891c0c0c4ea541b47b2878fa70f9 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Tue, 18 Mar 2025 21:38:28 +1300 Subject: [PATCH] chore: Remove `VOLUME` instruction from image (#3027) Signed-off-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> --- build/Dockerfile | 1 - build/Dockerfile-conformance | 1 - build/Dockerfile-minimal | 1 - build/stacker-conformance.yaml | 2 -- build/stacker-minimal.yaml | 2 -- build/stacker.yaml | 2 -- 6 files changed, 9 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 7e77e3c1..5093af46 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -36,5 +36,4 @@ COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$TARGETOS-$TARGET COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json ENTRYPOINT ["/usr/bin/zot"] EXPOSE 5000 -VOLUME ["/var/lib/registry"] CMD ["serve", "/etc/zot/config.json"] diff --git a/build/Dockerfile-conformance b/build/Dockerfile-conformance index efb40175..995a4632 100644 --- a/build/Dockerfile-conformance +++ b/build/Dockerfile-conformance @@ -32,5 +32,4 @@ COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$TARGETOS-$TARGET COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json ENTRYPOINT ["/usr/bin/zot"] EXPOSE 5000 -VOLUME ["/var/lib/registry"] CMD ["serve", "/etc/zot/config.yaml"] diff --git a/build/Dockerfile-minimal b/build/Dockerfile-minimal index 2a367f8c..15b90525 100644 --- a/build/Dockerfile-minimal +++ b/build/Dockerfile-minimal @@ -35,5 +35,4 @@ COPY --from=builder /go/src/github.com/project-zot/zot/bin/zot-$TARGETOS-$TARGET COPY --from=builder /go/src/github.com/project-zot/zot/config.json /etc/zot/config.json ENTRYPOINT ["/usr/bin/zot"] EXPOSE 5000 -VOLUME ["/var/lib/registry"] CMD ["serve", "/etc/zot/config.json"] diff --git a/build/stacker-conformance.yaml b/build/stacker-conformance.yaml index 9e156a7c..62deffe3 100644 --- a/build/stacker-conformance.yaml +++ b/build/stacker-conformance.yaml @@ -58,8 +58,6 @@ build: dest: /etc/zot entrypoint: - /usr/bin/zot-linux-amd64 - volumes: - - /var/lib/registry cmd: - serve - /etc/zot/config.json diff --git a/build/stacker-minimal.yaml b/build/stacker-minimal.yaml index 64e75b28..2aba80db 100644 --- a/build/stacker-minimal.yaml +++ b/build/stacker-minimal.yaml @@ -57,8 +57,6 @@ build: dest: /etc/zot entrypoint: - /usr/local/bin/zot-${{OS}}-${{ARCH}}${{EXT:}} - volumes: - - /var/lib/registry cmd: - serve - /etc/zot/config.json diff --git a/build/stacker.yaml b/build/stacker.yaml index 12e1a414..d4ce0fa5 100644 --- a/build/stacker.yaml +++ b/build/stacker.yaml @@ -72,8 +72,6 @@ build: dest: /etc/zot entrypoint: - /usr/local/bin/zot-${{OS}}-${{ARCH}} - volumes: - - /var/lib/registry cmd: - serve - /etc/zot/config.json