Skip to content

Commit

Permalink
Revert "chore: Remove redundant VOLUME directives"
Browse files Browse the repository at this point in the history
This reverts commit dc1a584.
  • Loading branch information
aeneasr committed Jan 11, 2025
1 parent 37782bd commit cd1f4f2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ HEREDOC

COPY hydra /usr/bin/hydra

USER ory

ENTRYPOINT ["hydra"]
CMD ["serve", "all"]
USER ory
2 changes: 2 additions & 0 deletions .docker/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ 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: 5 additions & 0 deletions .docker/Dockerfile-hsm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ 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: 7 additions & 0 deletions .docker/Dockerfile-sqlite
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ 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 cd1f4f2

Please sign in to comment.