| FROM python:3.9-slim | |
| RUN apt-get update && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y nodejs npm && \ | |
| apt-get clean && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| ENV HOME=/app | |
| ENV HF_HOME=/tmp/huggingface | |
| RUN mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN npm install -g http-server | |
| COPY . . | |
| EXPOSE 8501 8080 | |
| CMD ["python", "run.py"] |