Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add distroless #1348

Merged
merged 4 commits into from
Jun 29, 2023
Merged

feat: add distroless #1348

merged 4 commits into from
Jun 29, 2023

Conversation

adamwalach
Copy link
Contributor

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    security@ory.sh) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments


RUN apk --no-cache --latest upgrade &&\
apk --no-cache --upgrade --latest add ca-certificates
FROM gcr.io/distroless/base-nossl-debian11:nonroot AS runner
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this come with CGO? We need it for SQLite

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Demonsthere Demonsthere requested a review from aeneasr June 27, 2023 11:09
Copy link
Collaborator

@hperl hperl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,8 @@
FROM gcr.io/distroless/static-debian11:nonroot

COPY keto /usr/bin/keto
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this image being used for? How will the keto binary be built? In this case it needs to be for linux-x86 with CGO=0. Will this be guaranteed?

@Demonsthere Demonsthere added this pull request to the merge queue Jun 29, 2023
Merged via the queue into ory:master with commit f0839ee Jun 29, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants