| FROM python:3.11-slim |
|
|
| RUN apt-get update && apt-get install -y \ |
| curl gnupg supervisor wget ca-certificates && \ |
| |
| curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \ |
| gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor && \ |
| echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] \ |
| https://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | \ |
| tee /etc/apt/sources.list.d/mongodb-org-8.0.list && \ |
| apt-get update && apt-get install -y mongodb-org && \ |
| |
| wget https://dl.min.io/server/minio/release/linux-amd64/minio \ |
| -O /usr/local/bin/minio && \ |
| chmod +x /usr/local/bin/minio && \ |
| apt-get clean && rm -rf /var/lib/apt/lists/* |
|
|
| RUN mkdir -p /data/db /data/minio |
|
|
| WORKDIR /app |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| COPY . . |
|
|
| EXPOSE 7860 |
|
|
| CMD ["supervisord", "-c", "/app/supervisord.conf"] |