Spaces:
Build error
Build error
| FROM nikolaik/python-nodejs:python3.9-nodejs18 | |
| RUN apt-get update && apt-get install -y \ | |
| git-lfs \ | |
| build-essential \ | |
| libssl-dev \ | |
| wget \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxrender-dev \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| libgl1-mesa-glx && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| git lfs install | |
| WORKDIR /code | |
| COPY requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY . . | |
| RUN cd frontend && npm install && npm run build | |
| WORKDIR /code | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |