Files
dify-agentbox/scripts/03-install-python-packages.sh
T
Bowen Liang c22387cb39 separate run commands into multiple layers (#9)
* separate scripts into multiple RUN commands

* update filenames range

* loop filenames in array way

* Add step start and complete messages
2026-01-19 20:10:46 +08:00

22 lines
500 B
Bash

#!/bin/bash
set -ex
# Create base environment with Python
/opt/conda/bin/conda install -y -q -n base -c conda-forge \
python={{ languages.python.version }} \
pip
# Install Python packages
/opt/conda/bin/pip install --no-cache-dir -q \
{% for pkg in python_packages -%}
{% if pkg.version == "latest" -%}
"{{ pkg.name }}" \
{% else -%}
"{{ pkg.name }}{{ pkg.version }}" \
{% endif -%}
{% endfor %}
# Cleanup
/opt/conda/bin/conda clean --all -y
/opt/conda/bin/pip cache purge || true