mirror of
https://github.com/langgenius/dify-agentbox.git
synced 2026-07-01 20:24:11 -04:00
c22387cb39
* separate scripts into multiple RUN commands * update filenames range * loop filenames in array way * Add step start and complete messages
22 lines
500 B
Bash
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
|