From ab18d1c2651485729757a2aa154c78cf9b7481e0 Mon Sep 17 00:00:00 2001 From: Redume Date: Sat, 28 Sep 2024 15:16:52 +0300 Subject: [PATCH] setup docker (test) --- .dockerignore | 6 ++++++ Dockerfile | 11 +++++++++++ docker-compose.yaml | 9 +++++++++ 3 files changed, 26 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cd8251c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git/ +.vscode/ +.idea/ + +.DS_Store +__pycache__ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4dbeeca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.12 + +WORKDIR /shirino + +COPY ./requirements.txt . + +RUN pip3 install --no-cache-dir --upgrade -r ./requirements.txt + +COPY ./ /shirino/ + +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..f4a8391 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,9 @@ +services: + shirino: + image: ghcr.io/shirino/shirino:latest + ports: + - '8080:8080' + restart: unless-stopped + volumes: + - '.config.yaml:/config.yaml' + - '.config_sample.yaml:/config_sample.yaml' \ No newline at end of file