From 849a414d3e656db273cc4e460c295e23f85dfb92 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 3 Jan 2023 04:04:55 -0500 Subject: [PATCH] [+] Dockerfile and docker compose config --- Dockerfile | 8 ++++++++ config_sample.json | 2 +- docker-compose.yml | 11 +++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9a4b7cb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.11-alpine + +WORKDIR /app +COPY requirements.txt /app + +RUN pip install -r requirements.txt + +CMD ["python3", "-u", "/app/main.py"] diff --git a/config_sample.json b/config_sample.json index d66cad1..193ca7a 100644 --- a/config_sample.json +++ b/config_sample.json @@ -1,6 +1,6 @@ { "bot_token": "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11", - "port": 12345, + "port": 8080, "gh_webhooks": { "Codertocat/Hello-World": { "chat_id": -1001234567890, diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0985150 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" + +services: + gh-tg: + container_name: gh-tg + ports: + - "127.0.0.1:14784:8080" + build: . + volumes: + - ".:/app:z" + restart: always