| |
| FROM python:3.11-slim |
|
|
| ENV PYTHONDONTWRITEBYTECODE=1 |
| ENV PYTHONUNBUFFERED=1 |
|
|
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| build-essential \ |
| git \ |
| curl \ |
| ffmpeg \ |
| libsm6 \ |
| libxrender1 \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY . /app |
|
|
| |
| RUN pip install --no-cache-dir --upgrade pip |
| RUN pip install --no-cache-dir fastapi uvicorn jinja2 aiofiles instaloader python-multipart |
|
|
| |
| RUN pip install --no-cache-dir chromadb |
|
|
| |
| RUN mkdir -p /app/downloads |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--no-access-log"] |
|
|