Files
celery/Dockerfile

22 lines
448 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install git for pip git+https dependencies
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Create cache directory
RUN mkdir -p /data/cache
ENV PYTHONUNBUFFERED=1
# Default command runs the server
CMD ["python", "server.py"]