add python image

This commit is contained in:
2025-02-25 08:19:34 +01:00
parent 80a2841e6b
commit 52b93a7b94
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/sh
set -e
sudo apt-get update && sudo apt-get install -y \
python3-pip python3-venv
# Install Poetry
curl -sSL https://install.python-poetry.org | python3 -
# Ensure Poetry is in PATH
export PATH="$HOME/.local/bin:$PATH"
# Configure Poetry to use in-project virtual environments
poetry config virtualenvs.in-project true
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/*
echo "Poetry and venv installed successfully!"