25 lines
679 B
Docker
25 lines
679 B
Docker
FROM python:3.11-slim-bookworm
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PYTHONPATH=/app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN sed -i 's|http://deb.debian.org|https://deb.debian.org|g' /etc/apt/sources.list.d/debian.sources \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends poppler-utils libgl1 libglib2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY domain /app/domain
|
|
COPY core /app/core
|
|
COPY infrastructure /app/infrastructure
|
|
COPY api /app/api
|
|
COPY worker /app/worker
|
|
|
|
EXPOSE 8001
|
|
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8001"]
|