sample Docker/-compose file

This commit is contained in:
matthias@matsewe.de committed 2024-07-02 13:51:19 +02:00
1 parent dbaf0c5e4c
commit b48a27b2a3
5 files changed
+36 -3

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
FROM python:3.11
WORKDIR /code
COPY ./requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80", "--reload"]