Spaces:
Runtime error
Runtime error
File size: 430 Bytes
720052c 1e1894c 720052c 1e1894c 720052c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM python:3.11-slim
ENV HF_HOME=/data/hfcache \
TRANSFORMERS_CACHE=/data/hfcache \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD bash -lc "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"
|