mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
Testing updated Dockerfile
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -18,25 +18,17 @@ RUN apt-get update && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Rust
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
|
||||
# Set up the Rust environment
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
RUN rustup default stable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Python dependencies
|
||||
COPY ./requirements.txt .
|
||||
RUN pip3 install uv && \
|
||||
if [ "$USE_CUDA" = "true" ]; then \
|
||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir && \
|
||||
uv pip install --system -r requirements.txt --no-cache-dir; \
|
||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir; \
|
||||
else \
|
||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir && \
|
||||
uv pip install --system -r requirements.txt --no-cache-dir; \
|
||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir; \
|
||||
fi
|
||||
RUN uv pip install --system -r requirements.txt --no-cache-dir
|
||||
|
||||
# Copy the application code
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user