From 02cfa4b218ad8b1fb586940ad427fff8595ad976 Mon Sep 17 00:00:00 2001 From: Matthias Weber Date: Tue, 2 Jul 2024 15:41:52 +0200 Subject: [PATCH] Create Dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1b4ac07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.11 + +WORKDIR /code + +COPY ./requirements.txt /tmp/requirements.txt + +RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt + +COPY ./app /code/app +COPY ./static /code/static +COPY ./templates /code/templates + +RUN echo "first_run" > "/tmp/first_run" + +CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80"]