Files
AI_portal/offer-to-order/Dockerfile
2026-07-07 13:16:26 +02:00

20 lines
434 B
Docker

FROM python:3.12-slim
WORKDIR /app
# DejaVu fonts so reportlab renders Czech diacritics in the order-form PDF.
RUN apt-get update \
&& apt-get install -y --no-install-recommends fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /tmp/offer-to-order
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]