initial wip
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user