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