my-containers/Containerfile.trixie_python

24 lines
597 B
Text
Raw Normal View History

# Build: podman build -t code.philo.ydns.eu/philorg/trixie_python -f Containerfile.trixie_python
2024-11-02 03:56:53 +01:00
FROM docker.io/debian:trixie-slim
2024-11-02 03:56:53 +01:00
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