mirror of
https://github.com/open-webui/pipelines
synced 2025-05-13 17:10:45 +00:00
chore: docker
This commit is contained in:
parent
d5827887e6
commit
ab0ff071c2
@ -14,7 +14,7 @@ ENV ENV=prod \
|
|||||||
|
|
||||||
# Install GCC and build tools
|
# Install GCC and build tools
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y gcc build-essential && \
|
apt-get install -y gcc build-essential pkg-config && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -65,3 +65,4 @@ beautifulsoup4
|
|||||||
APScheduler
|
APScheduler
|
||||||
youtube_dl
|
youtube_dl
|
||||||
twilio
|
twilio
|
||||||
|
streamlit
|
12
start.sh
12
start.sh
@ -42,7 +42,7 @@ download_pipelines() {
|
|||||||
git sparse-checkout set "$subdir"
|
git sparse-checkout set "$subdir"
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
echo "Invalid PIPELINES_PATH format."
|
echo "Invalid PIPELINES_URLS format."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -66,13 +66,13 @@ install_frontmatter_requirements() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Check if PIPELINES_PATH environment variable is set and non-empty
|
# Check if PIPELINES_URLS environment variable is set and non-empty
|
||||||
if [[ -n "$PIPELINES_PATH" ]]; then
|
if [[ -n "$PIPELINES_URLS" ]]; then
|
||||||
pipelines_dir="./pipelines"
|
pipelines_dir="./pipelines"
|
||||||
mkdir -p "$pipelines_dir"
|
mkdir -p "$pipelines_dir"
|
||||||
|
|
||||||
# Split PIPELINES_PATH by ';' and iterate over each path
|
# Split PIPELINES_URLS by ';' and iterate over each path
|
||||||
IFS=';' read -ra ADDR <<< "$PIPELINES_PATH"
|
IFS=';' read -ra ADDR <<< "$PIPELINES_URLS"
|
||||||
for path in "${ADDR[@]}"; do
|
for path in "${ADDR[@]}"; do
|
||||||
download_pipelines "$path" "$pipelines_dir"
|
download_pipelines "$path" "$pipelines_dir"
|
||||||
done
|
done
|
||||||
@ -83,7 +83,7 @@ if [[ -n "$PIPELINES_PATH" ]]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "PIPELINES_PATH not specified. Skipping pipelines download and installation."
|
echo "PIPELINES_URLS not specified. Skipping pipelines download and installation."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user