From cb6a91c384b3d2b7458ad075d73cf50d10d75748 Mon Sep 17 00:00:00 2001 From: Hipstercat Date: Wed, 17 Nov 2021 12:43:43 +0100 Subject: [PATCH] build --- .drone.yml | 2 ++ Dockerfile | 5 +++++ docker-compose.yml | 10 ++++++++++ 3 files changed, 17 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9289328 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,2 @@ +kind: template +load: python.starlark \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9913ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.9-slim +WORKDIR /app +RUN pip install --no-cache-dir -r requirements.txt +COPY . . +ENTRYPOINT [ "python", "-u", "/app/main.py" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d34b48b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + app: + image: giants-posts-bot:latest + build: + context: . + dockerfile: Dockerfile + restart: always + volumes: + - './config.json:/app/config.json'