Skip to content

Commit cd1f4f2

Browse files
committed
Revert "chore: Remove redundant VOLUME directives"
This reverts commit dc1a584.
1 parent 37782bd commit cd1f4f2

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

.docker/Dockerfile-alpine

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ HEREDOC
2020

2121
COPY hydra /usr/bin/hydra
2222

23+
USER ory
24+
2325
ENTRYPOINT ["hydra"]
2426
CMD ["serve", "all"]
25-
USER ory

.docker/Dockerfile-build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ FROM gcr.io/distroless/static-debian12:nonroot AS runner
2323
COPY --from=builder --chown=nonroot:nonroot /var/lib/sqlite /var/lib/sqlite
2424
COPY --from=builder /usr/bin/hydra /usr/bin/hydra
2525

26+
VOLUME /var/lib/sqlite
27+
2628
# Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint)
2729
EXPOSE 4444 4445
2830

.docker/Dockerfile-hsm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ HEREDOC
8080

8181
COPY --from=build-hydra /usr/bin/hydra /usr/bin/hydra
8282

83+
VOLUME /var/lib/sqlite
84+
85+
# Exposing the ory home directory
86+
VOLUME /home/ory
87+
8388
# Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint)
8489
EXPOSE 4444 4445
8590

.docker/Dockerfile-sqlite

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@ RUN <<HEREDOC
2525
install --owner ory --group ory --directory /var/lib/sqlite
2626
HEREDOC
2727

28+
WORKDIR /home/ory
29+
2830
COPY hydra /usr/bin/hydra
2931

32+
VOLUME /var/lib/sqlite
33+
34+
# Exposing the ory home directory
35+
VOLUME /home/ory
36+
3037
# Declare the standard ports used by Hydra (4444 for public service endpoint, 4445 for admin service endpoint)
3138
EXPOSE 4444 4445
3239

0 commit comments

Comments
 (0)