Spaces:
Sleeping
Sleeping
| FROM python:3.11 | |
| RUN apt-get update | |
| RUN apt-get --yes install ffmpeg | |
| # Set up a new user named "user" with user ID 1000 | |
| RUN useradd -m -u 1000 user | |
| # Switch to the "user" user | |
| USER user | |
| # Set home to the user's home directory | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| COPY --chown=user requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY --chown=user app.py . | |
| ENTRYPOINT ["solara", "run", "app.py", "--host=0.0.0.0", "--port", "7860"] | |