PM joins the ERP traefik (PathPrefix /pm, priority 100), shares the ERP database (additive tables at startup), and reads ERP panels for SSO. PIP_INDEX_URL build arg mirrors the api/bot images.
18 lines
442 B
Docker
18 lines
442 B
Docker
FROM python:3.13-slim
|
|
|
|
WORKDIR /srv/pm
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
COPY requirements.txt .
|
|
# PIP_INDEX_URL overridable like the ERP api/bot images (mirror for restricted networks).
|
|
ARG PIP_INDEX_URL=https://pypi.org/simple
|
|
RUN pip install --no-cache-dir -i ${PIP_INDEX_URL} -r requirements.txt
|
|
|
|
COPY app ./app
|
|
COPY tools ./tools
|
|
|
|
EXPOSE 8000
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|