Skip to content

Commit b2f202c

Browse files
polaratheneaeneasr
authored andcommitted
chore: Dockerfile-alpine - Add commentary
1 parent 8a50bbb commit b2f202c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.docker/Dockerfile-alpine

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ RUN <<HEREDOC
55
apk add --no-cache --upgrade ca-certificates
66

77
# Add a user/group for Ory with a stable UID + GID:
8+
# NOTE: This only appears relevant for supporting hydra as non-root, otherwise unnecessary.
89
addgroup --system --gid 500 ory
910
adduser --system --uid 500 \
1011
--gecos "Ory User" \
@@ -15,6 +16,9 @@ RUN <<HEREDOC
1516

1617
# Create the sqlite directory with ownership to that user and group:
1718
# NOTE: This is required for read/write by SQLite.
19+
# - Path may be a default value somewhere, or only explicitly provided via DSN?
20+
# - Owner/Group is only relevant to permissions allowing the hydra process to read/write to the location.
21+
# - Bind mount volumes will replace the ownership with that of the host directory, requiring correction.
1822
install --owner ory --group ory --directory /var/lib/sqlite
1923
HEREDOC
2024

0 commit comments

Comments
 (0)