-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.worker
More file actions
25 lines (18 loc) · 864 Bytes
/
Dockerfile.worker
File metadata and controls
25 lines (18 loc) · 864 Bytes
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
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PATH="/app/.venv/bin:${PATH}" \
PYTHONPATH="/app/src"
WORKDIR /app
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl git build-essential \
libglib2.0-0 libnss3 libatk-bridge2.0-0 libx11-xcb1 libxcomposite1 libxdamage1 libxfixes3 \
libxrandr2 libgbm1 libgtk-3-0 libpango-1.0-0 libcairo2 libcups2 libdrm2 libasound2 \
libxkbcommon0 libxshmfence1 libxss1 libxcursor1 libxi6 libxtst6 libxrender1 fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml uv.lock ./
RUN pip install --no-cache-dir uv==0.4.22 && \
uv sync --frozen --no-dev --python /usr/local/bin/python
RUN python -m playwright install --with-deps chromium
COPY . .
CMD ["python", "-m", "src.worker.sqs_worker"]