14 lines
338 B
Docker
14 lines
338 B
Docker
FROM python:3.12-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements and install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY tasks/ .
|
|
|
|
# Command will be overridden by docker-compose
|
|
CMD ["celery", "-A", "main", "worker", "--loglevel=info"] |