Spaces:
Runtime error
Runtime error
| FROM python:3.9 | |
| RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install | |
| RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| RUN dpkg -i google-chrome-stable_current_amd64.deb --fix-missing; apt-get -fy install | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |