2026-07-04 19:15:43 +02:00
|
|
|
FROM python:3.12-slim
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y postgresql-client \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
ENV PIP_DEFAULT_TIMEOUT=120
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
COPY . .
|
2026-07-04 20:38:49 +02:00
|
|
|
RUN chmod +x /app/entrypoint.sh
|
2026-07-04 19:15:43 +02:00
|
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
2026-07-04 20:38:49 +02:00
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
2026-07-04 19:15:43 +02:00
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|