Explorar el Código

Added dockerfile

TheHamkerCat hace 5 años
padre
commit
a776d334df
Se han modificado 2 ficheros con 20 adiciones y 1 borrados
  1. 19 0
      Dockerfile
  2. 1 1
      README.md

+ 19 - 0
Dockerfile

@@ -0,0 +1,19 @@
+FROM python:3.9-slim-stretch
+
+ENV PIP_NO_CACHE_DIR 1
+
+# Pypi package Repo upgrade
+RUN pip3 install --upgrade pip setuptools
+
+# copy the dependencies file to the working directory
+COPY requirements.txt .
+
+# install dependencies
+RUN pip install -r requirements.txt
+
+# copy the content of the local src directory to the working directory
+COPY . .
+# Starting Worker
+CMD ["python3", "-m", "wbb"]
+
+EXPOSE 8000

+ 1 - 1
README.md

@@ -7,7 +7,7 @@ Just Another Telegram Bot Written In Python Using Pyrogram.
 
 ## Requirements
 
-- Python 3.6 or higher.
+- Python 3.7 or higher.
 - A [Telegram API key](//docs.pyrogram.org/intro/setup#api-keys).
 - A [Telegram bot token](//t.me/botfather).