Skip to content

Commit

Permalink
chore: Remove redundant VOLUME directives
Browse files Browse the repository at this point in the history
  • Loading branch information
polarathene authored Dec 28, 2024
1 parent f612685 commit 51fc717
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ HEREDOC

COPY hydra /usr/bin/hydra

USER ory

ENTRYPOINT ["hydra"]
CMD ["serve", "all"]
USER ory
2 changes: 0 additions & 2 deletions .docker/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions .docker/Dockerfile-hsm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 0 additions & 7 deletions .docker/Dockerfile-sqlite
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,8 @@ RUN <<HEREDOC
install --owner ory --group ory --directory /var/lib/sqlite
HEREDOC

WORKDIR /home/ory

COPY 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

Expand Down

0 comments on commit 51fc717

Please sign in to comment.