From 6051cc26d8dc5717c0c5e35fa961349b7a94af67 Mon Sep 17 00:00:00 2001 From: Redume Date: Sat, 19 Oct 2024 19:14:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 13 +++++++++++++ docker-compose.yaml | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..782e890 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12 + +WORKDIR / + +COPY ./requirements.txt ./ + +RUN pip3 install --no-cache-dir --upgrade -r ./requirements.txt + +COPY . . + +EXPOSE 9000 + +CMD ["python", "main.py"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..8d666d3 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,10 @@ +services: + kekkai-web: + build: . + ports: + - '9000:9000' + restart: unless-stopped + +volumes: + starlio-web: + driver: local \ No newline at end of file