From 7cfac5b61196384cc542b88f3d634405edb8996b Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 19 Oct 2024 22:21:22 +0300 Subject: [PATCH] time to move to docker --- Dockerfile | 9 +++++++++ requirements.txt | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e7061d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:alpine3.20 + +WORKDIR /pgbot +COPY . . +ENV PIP_ROOT_USER_ACTION=ignore +RUN pip install -r requirements.txt + +ENV TZ=Europe/Moscow +CMD /pgbot/pgbot diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..06bf66c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +aiocron>=1.8 +bs4>=0.0.2 +fake_headers>=1 +psycopg>=3.2 +pyyaml>=6 +requests>=2.32 +telethon>=1.37