Base image with pre-installed pip and poetry for building Kubernetes applications
Basic Dockerfile
example:
FROM ghcr.io/gamesboost42/python:3.9 AS python3
COPY pyproject.toml poetry.lock ./
RUN poetry install && rm -rf ~/.cache
COPY . .
USER 1042:1042
EXPOSE 8000
CMD ["uvicorn", "main:app", "--port", "8000"]