| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV HF_HOME=/app/.cache | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| git \ | |
| nodejs \ | |
| npm \ | |
| sudo \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN apt-get update | |
| RUN pip3 install --no-cache-dir fastapi uvicorn huggingface_hub watchdog python-multipart | |
| RUN pip3 install --no-cache-dir python-multipart | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod 777 /app | |
| RUN chmod +x ./start.sh | |
| RUN chmod +x ./hf_sync.sh | |
| EXPOSE 7860 | |
| CMD ["bash", "./start.sh"] |