Files
vpsx-db/Dockerfile

20 lines
342 B
Docker
Raw Permalink Normal View History

2025-08-28 16:01:44 +00:00
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"]