Spaces:
Build error
Build error
| FROM python:3.10 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Rust | |
| RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ | |
| && source $HOME/.cargo/env \ | |
| && echo 'source $HOME/.cargo/env' >> $HOME/.bashrc | |
| # Set PATH for Rust | |
| ENV PATH="/root/.cargo/bin:${PATH}" | |
| # Set the working directory | |
| WORKDIR /home/user/app | |
| # Copy requirements file | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |