From 93237ec7d2473b482f9222026a6ce5fe948d9f2e Mon Sep 17 00:00:00 2001 From: Maxim Romanko Date: Wed, 31 Jul 2024 13:39:08 +0300 Subject: [PATCH] [INIT] --- .gitignore | 1 + Dockerfile | 17 +++++++++++++++++ main.py | 7 +++++++ req.txt | 0 4 files changed, 25 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 main.py create mode 100644 req.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ceb386 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +venv diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..905fad6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.10.12 + +MAINTAINER Tan Jin (tjtanjin) + +# set a directory for the app +WORKDIR /usr/src/app + +# copy all the files to the container +COPY . . +RUN mkdir ./images + +# install app-specific dependencies +RUN pip install --no-cache-dir -r req.txt +RUN pip install python-telegram-bot[job-queue] + +# app command +CMD ["python", "-u", "./main.py"] \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..bd1d0e2 --- /dev/null +++ b/main.py @@ -0,0 +1,7 @@ + + +def main(): + pass + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/req.txt b/req.txt new file mode 100644 index 0000000..e69de29