cv-buddy-backend / Dockerfile
Momal's picture
Deploy cv-buddy backend
366c43e
raw
history blame contribute delete
568 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies for WeasyPrint + supervisor for running multiple processes
RUN apt-get update && apt-get install -y \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf-2.0-0 \
libffi-dev \
shared-mime-info \
supervisor \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENV PORT=7860
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]