treetrail-backend/Containerfile.trixie_python

24 lines
587 B
Text
Raw Normal View History

2024-12-05 18:59:55 +01:00
# Build: podman build -t code.philo.ydns.eu/philorg/trixie_python -f Containerfile.trixie_python
2024-10-27 13:35:16 +01:00
2024-10-23 16:19:51 +02:00
FROM debian:trixie-slim
2024-10-27 02:09:13 +02: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
2024-10-23 16:19:51 +02:00
2024-10-27 02:09:13 +02:00
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
2024-10-23 16:19:51 +02:00
2024-10-27 02:09:13 +02:00
ENV UV_LINK_MODE=copy \
2024-12-05 18:59:55 +01:00
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