Spaces:
Runtime error
Runtime error
FROM python:3.11-slim | |
WORKDIR /code | |
# Install system dependencies including gcc and build tools | |
RUN apt-get update && apt-get install -y \ | |
gcc \ | |
g++ \ | |
make \ | |
git \ | |
&& rm -rf /var/lib/apt/lists/* | |
COPY ./requirements.txt /code/requirements.txt | |
COPY ./app.py /code/app.py | |
COPY ./templates /code/templates | |
COPY ./models /code/models | |
# Install Python packages | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
EXPOSE 7860 | |
CMD ["python", "app.py"] |