FROM nikolaik/python-nodejs:python3.9-nodejs18 # Git LFS RUN apt-get update && apt-get install -y git-lfs RUN git lfs install # Default Debian packages RUN apt-get update && apt-get install -y \ build-essential \ libssl-dev \ wget \ ffmpeg \ libsm6 \ libxrender-dev \ ffmpeg \ libsm6 \ libxext6 \ cmake \ libgl1-mesa-glx WORKDIR /code COPY . . RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt WORKDIR /code/frontend RUN npm install && npm run build WORKDIR /code CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]