Spaces:
Sleeping
Sleeping
| FROM python:3.11 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| ENV GRADIO_ALLOW_FLAGGING="never" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN pip install --no-cache-dir --upgrade gradio2api==0.0.4.2 | |
| COPY --chown=user . /app | |
| RUN python -m spacy download en_core_web_sm | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |