Files
vpsx-db/Dockerfile
Bernhard Radermacher 4e9fd3d394 initial wip
2025-08-28 16:01:44 +00:00

20 lines
342 B
Docker

FROM python:3
LABEL authors="Bernhard Radermacher"
RUN pip install mariadb pymysql sqlmodel uvicorn fastapi
ENV DB_USER="must be set" \
DB_PASSWORD="must be set" \
DB_HOST="mariadb" \
DB_PORT=3306 \
DB_DATABASE="vpsx"
COPY src /src
COPY main.py /
ENTRYPOINT ["/usr/local/bin/uvicorn", "main:app", "--host", "0.0.0.0"]