File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ HEREDOC
2020
2121COPY hydra /usr/bin/hydra
2222
23+ USER ory
24+
2325ENTRYPOINT ["hydra"]
2426CMD ["serve", "all"]
25- USER ory
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ FROM gcr.io/distroless/static-debian12:nonroot AS runner
2323COPY --from=builder --chown=nonroot:nonroot /var/lib/sqlite /var/lib/sqlite
2424COPY --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)
2729EXPOSE 4444 4445
2830
Original file line number Diff line number Diff line change @@ -80,6 +80,11 @@ HEREDOC
8080
8181COPY --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)
8489EXPOSE 4444 4445
8590
Original file line number Diff line number Diff line change @@ -25,8 +25,15 @@ RUN <<HEREDOC
2525 install --owner ory --group ory --directory /var/lib/sqlite
2626HEREDOC
2727
28+ WORKDIR /home/ory
29+
2830COPY 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)
3138EXPOSE 4444 4445
3239
You can’t perform that action at this time.
0 commit comments