Skip to content

Commit

Permalink
feat: add distroless image
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jan 8, 2024
1 parent 34aa58a commit 9c07045
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .docker/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ COPY --from=builder /usr/bin/ory /usr/bin/ory
# exists, it will be automatically used as the configuration file).
VOLUME /home/ory

# Declare the standard ports used by Kratos (4433 for public service endpoint, 4434 for admin service endpoint)
EXPOSE 4433 4434

USER ory

ENTRYPOINT ["ory"]
7 changes: 7 additions & 0 deletions .docker/Dockerfile-distroless-static
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gcr.io/distroless/static-debian12:nonroot

COPY ory /usr/bin/ory
# Declare the standard ports used by hydra (4444 for public service endpoint, 4445 for admin service endpoint)
EXPOSE 4444 4445

ENTRYPOINT ["ory"]

0 comments on commit 9c07045

Please sign in to comment.