From 4be753af07f2c7188d99fe2b696cb3de3a3524ae Mon Sep 17 00:00:00 2001 From: Redume Date: Fri, 27 Sep 2024 20:30:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BE=D0=BA=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 3 +++ Dockerfile | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f41a720 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git/ +.vscode/ +.idea/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fe5056c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.12 + +WORKDIR /starlio-web + +COPY ./requirements.txt /starlio-web/requirements.txt + +RUN pip3 install --no-cache-dir --upgrade -r /starlio-web/requirements.txt + +COPY ./ /starlio-web/ + +CMD ["fastapi", "run", "main.py", "--port", "8000"] \ No newline at end of file