13 lines
442 B
Text
13 lines
442 B
Text
# DB-Dienst für PostgreSQL. Bauen: podman build -f Containerfile.postgres -t db-mcp-postgres .
|
|
# UBI-Image läuft unter OpenShift mit zufälliger UID (restricted-v2), ohne root.
|
|
FROM registry.access.redhat.com/ubi9/python-312
|
|
|
|
WORKDIR /opt/app-root/src
|
|
COPY pyproject.toml ./
|
|
COPY dbmcp ./dbmcp
|
|
RUN pip install --no-cache-dir ".[postgres]"
|
|
|
|
USER 1001
|
|
EXPOSE 8080
|
|
ENV DBMCP_BIND=0.0.0.0 DBMCP_PORT=8080
|
|
CMD ["python", "-m", "dbmcp.postgres"]
|