Spaces:
Running
Running
File size: 529 Bytes
bae63bc 10fe045 fa066c8 10fe045 fa066c8 10fe045 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM mcr.microsoft.com/playwright/python:v1.58.0-jammy
# Playwright image already has a default user "pwuser" with UID 1000,
# which is exactly what Hugging Face needs. We don't need to create one.
USER pwuser
ENV HOME=/home/pwuser \
PATH=/home/pwuser/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=pwuser . $HOME/app
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Start FastAPI app on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|