19 lines
323 B
Docker
19 lines
323 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy requirements
|
|
COPY backend/requirements.txt .
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy application code
|
|
COPY backend/app /app
|
|
|
|
# Set environment variables
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV WORKER_COUNT=3
|
|
|
|
# Run worker
|
|
CMD ["python", "worker.py"] |