treetrail-backend/Containerfile.trixie_python
phil 735ad5dd9c
Some checks failed
/ build (push) Failing after 25s
CI: improve workflow
2024-10-27 13:35:16 +01:00

23 lines
572 B
Text

# Build: podman build -t trixie_python -f Containerfile.trixie_python
FROM debian:trixie-slim
RUN <<EOT
apt-get update -qy
apt-get install -qyy \
-o APT::Install-Recommends=false \
-o APT::Install-Suggests=false \
ca-certificates \
python-is-python3
apt-get clean
EOT
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
ENV UV_LINK_MODE=copy \
UV_COMPILE_BYTECODE=1 \
UV_PYTHON_DOWNLOADS=never \
#UV_PYTHON=python3.12 \
UV_PROJECT_ENVIRONMENT=/app \
PYTHONPATH=/app/lib/python3.12/site-packages \
PATH=/app/bin:$PATH