Spaces:
Runtime error
Runtime error
File size: 485 Bytes
9928fc1 881b45d a0e118e 9928fc1 881b45d a0e118e 9928fc1 881b45d 0a1a1bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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"] |