File size: 776 Bytes
db4ba8d
 
 
 
 
 
 
 
 
 
 
 
 
703e27a
db4ba8d
 
 
 
 
 
703e27a
db4ba8d
703e27a
db4ba8d
703e27a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.13-slim-bookworm

WORKDIR /app

# Fix Debian GPG key rotation, install uv, and system dependencies
RUN pip install uv && \
    apt-get update -o Acquire::AllowInsecureRepositories=true 2>/dev/null; \
    apt-get install -y --allow-unauthenticated debian-archive-keyring 2>/dev/null; \
    apt-get update && apt-get install -y --no-install-recommends \
    libgl1 \
    libglib2.0-0 \
    libmagic1 \
    curl \
    redis-server \
    && rm -rf /var/lib/apt/lists/*

# Install dependencies using uv (lockfile ensures deterministic resolution)
COPY pyproject.toml uv.lock ./
RUN uv pip install --system -r pyproject.toml

# Copy source code and start script
COPY . .
RUN chmod +x start.sh

# Run via start.sh (starts Redis, Celery, and Uvicorn)
CMD ["./start.sh"]