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

docker image fails to start #320

Closed
demeringo opened this issue Sep 27, 2024 · 1 comment · Fixed by #321
Closed

docker image fails to start #320

demeringo opened this issue Sep 27, 2024 · 1 comment · Fixed by #321
Labels
bug Something isn't working

Comments

@demeringo
Copy link
Collaborator

demeringo commented Sep 27, 2024

Bug description

The docker image of the main branch seems to build OK but when running it execution fails with error message.

ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'

To Reproduce

Build image locally or in CI.

Expected behavior

JSON OUTPUT

Additional context

@demeringo demeringo added the bug Something isn't working label Sep 27, 2024
@demeringo
Copy link
Collaborator Author

demeringo commented Sep 27, 2024

Seems related to the base image we use as runtime ?

In the dockerfile, if I replace

FROM gcr.io/distroless/python3

By the same image we use in first stage (build)

FROM python:$PY_VERSION-slim

The application starts OK.

This is just an example, there maybe more appropriate base images (I did not check the size of the resulting image).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant