17 lines
426 B
Docker
17 lines
426 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY worker/requirements.txt .
|
|
RUN python -m pip install --upgrade pip setuptools wheel \
|
|
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY worker/queue_worker.py .
|
|
|
|
USER 1000
|
|
CMD ["python", "queue_worker.py"]
|