Spaces:
Running
Running
File size: 392 Bytes
5a2da96 dc54d81 5a2da96 dc54d81 5a2da96 94d8e1f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM python:3.11-slim
WORKDIR /app
# Set environment variables
ENV HF_HOME=/tmp/huggingface \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
RUN mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
EXPOSE 8000
CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "7860"] |