Spaces:
Runtime error
Runtime error
File size: 354 Bytes
d2b9f1c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
FROM python:3.11-slim
WORKDIR /code
ENV HF_HOME /code/.cache
RUN mkdir -p /code/.cache && chmod -R 777 /code/.cache
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app.py /code/app.py
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |