From 51fc7177b9ba52a392b65db9f482358a0ea208c5 Mon Sep 17 00:00:00 2001 From: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Date: Sat, 28 Dec 2024 17:28:43 +1300 Subject: [PATCH] chore: Remove redundant `VOLUME` directives --- .docker/Dockerfile-alpine | 3 +-- .docker/Dockerfile-build | 2 -- .docker/Dockerfile-hsm | 5 ----- .docker/Dockerfile-sqlite | 7 ------- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/.docker/Dockerfile-alpine b/.docker/Dockerfile-alpine index 1c5bd3c14ff..91174b9d19a 100644 --- a/.docker/Dockerfile-alpine +++ b/.docker/Dockerfile-alpine @@ -20,7 +20,6 @@ HEREDOC COPY hydra /usr/bin/hydra -USER ory - ENTRYPOINT ["hydra"] CMD ["serve", "all"] +USER ory diff --git a/.docker/Dockerfile-build b/.docker/Dockerfile-build index 18cc454fba9..0c858feaeb3 100644 --- a/.docker/Dockerfile-build +++ b/.docker/Dockerfile-build @@ -23,8 +23,6 @@ FROM gcr.io/distroless/static-debian12:nonroot AS runner COPY --from=builder --chown=nonroot:nonroot /var/lib/sqlite /var/lib/sqlite COPY --from=builder /usr/bin/hydra /usr/bin/hydra -VOLUME /var/lib/sqlite - # Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint) EXPOSE 4444 4445 diff --git a/.docker/Dockerfile-hsm b/.docker/Dockerfile-hsm index f2c1c3130a7..8c51e3fcdac 100644 --- a/.docker/Dockerfile-hsm +++ b/.docker/Dockerfile-hsm @@ -80,11 +80,6 @@ HEREDOC COPY --from=build-hydra /usr/bin/hydra /usr/bin/hydra -VOLUME /var/lib/sqlite - -# Exposing the ory home directory -VOLUME /home/ory - # Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint) EXPOSE 4444 4445 diff --git a/.docker/Dockerfile-sqlite b/.docker/Dockerfile-sqlite index dbfb1399d82..82d678bb9ed 100644 --- a/.docker/Dockerfile-sqlite +++ b/.docker/Dockerfile-sqlite @@ -25,15 +25,8 @@ RUN <