Skip to content

Commit

Permalink
Revert "chore: Dockerfile-scratch - Add commentary"
Browse files Browse the repository at this point in the history
This reverts commit 12926f4.
  • Loading branch information
aeneasr committed Jan 11, 2025
1 parent 5ad3469 commit 37782bd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .docker/Dockerfile-scratch
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# TODO: Remove this file in favor of distroless-static variant:
# https://github.com/ory/hydra/blob/master/.docker/Dockerfile-distroless-static
# However if published to any registry, continue to publish the variant tag but as an alias to `-distroless` tags:
# https://github.com/ory/hydra/pull/3914#pullrequestreview-2527315326

FROM alpine:3.20 AS base-files

RUN <<HEREDOC
apk upgrade --no-cache
apk add --no-cache --upgrade ca-certificates

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

# Create the sqlite directory with ownership to that user and group:
# NOTE: This is required for read/write by SQLite.
# - Path may be a default value somewhere, or only explicitly provided via DSN?
# - Owner/Group is only relevant to permissions allowing the hydra process to read/write to the location.
install --owner ory --group ory --directory /var/lib/sqlite
HEREDOC

Expand Down

0 comments on commit 37782bd

Please sign in to comment.