Spaces:
Sleeping
Sleeping
File size: 537 Bytes
8ad9db8 604238b df9f420 604238b 1b0e4a0 e97c5c0 df9f420 8ad9db8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.9-slim
WORKDIR /code
# Create cache directory with proper permissions
RUN mkdir -p /.cache && chmod 777 /.cache
COPY requirements.txt .
COPY app.py .
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
python3-dev && \
pip install --no-cache-dir -r requirements.txt && \
apt-get remove -y build-essential python3-dev && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |