From d61c1d0f1b4041bed446865fe89c4066cc12c0f1 Mon Sep 17 00:00:00 2001 From: falsycat Date: Sun, 12 Feb 2023 02:14:53 +0900 Subject: [PATCH] add files for docker --- Dockerfile | 7 +++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b5d3589 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3-alpine + +WORKDIR /repo +ADD requirements.txt /repo +RUN pip3 install -r requirements.txt + +CMD ["python3", "main.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3e63d2b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' + +services: + maidbot: + build: + context: . + volumes: + - ./:/repo