Spaces:
Running
Running
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| ENV HF_HOME=/data/.huggingface | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt /home/user/app/requirements.txt | |
| RUN pip install --no-cache-dir -r /home/user/app/requirements.txt | |
| COPY --chown=user . /home/user/app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |