Sign inSign up

naylscloud/python

By naylscloud

Updated almost 5 years ago

https://github.com/nayls-cloud/python

Image
0

1.1K

naylscloud/python repository overview

python - github repo

Runtime images - images without dev depndency

SDK images - images with dev dependency (build-essential, libffi-dev, etc), use for build in CI, and final image create with multistage build, see example.

python3.8

3.8-slim
3.8-slim-poetry
3.8-slim-poetry-cargo
3.8-slim-sdk
3.8-slim-poetry-sdk
3.8-slim-poetry-cargo-sdk

python3.9

3.9-slim
3.9-slim-poetry
3.9-slim-poetry-cargo
3.9-slim-sdk
3.9-slim-poetry-sdk
3.9-slim-poetry-cargo-sdk

python3.10

3.10-slim
3.10-slim-poetry
3.10-slim-poetry-cargo
3.10-slim-sdk
3.10-slim-poetry-sdk
3.10-slim-poetry-cargo-sdk

Example multistage build image

FROM naylscloud/python:3.9-slim-poetry-cargo-sdk as dependency-image

COPY poetry.lock pyproject.toml ./
RUN poetry install --no-interaction --no-dev --no-root --no-ansi -vvv


FROM naylscloud/python:3.9-slim as runtime-image

WORKDIR /app

COPY --from=dependency-image $VENV_PATH $VENV_PATH
COPY ./ ./

ENTRYPOINT faust -A app.worker worker

Tag summary

Content type

Image

Digest

Size

340.7 MB

Last updated

almost 5 years ago

docker pull naylscloud/python:3.9-slim-poetry-cargo-sdk