TheHamkerCat 5 tahun lalu
induk
melakukan
1ccde787c1
3 mengubah file dengan 30 tambahan dan 0 penghapusan
  1. 17 0
      .dockerignore
  2. 6 0
      Dockerfile
  3. 7 0
      docker-compose.yaml

+ 17 - 0
.dockerignore

@@ -0,0 +1,17 @@
+.webm
+*.mp3
+*.mp4
+*.webp
+*.weba
+*.part
+*.ytdl
+final.png
+background.png
+temp.png
+# python
+venv/
+__pycache__/
+# tgbot
+config.py
+*.session
+*.session-journal

+ 6 - 0
Dockerfile

@@ -1,5 +1,7 @@
 FROM python:3.9.2-slim-buster
 
+WORKDIR /app
+
 ENV PIP_NO_CACHE_DIR 1
 
 # Pypi package Repo upgrade
@@ -13,5 +15,9 @@ RUN pip install -r requirements.txt
 
 # copy the content of the local src directory to the working directory
 COPY . .
+
+
+RUN cp sample_config.py config.py
+
 # Starting Worker
 CMD ["python3", "-m", "wbb"]

+ 7 - 0
docker-compose.yaml

@@ -0,0 +1,7 @@
+version: '3.1'
+
+services:
+  app:
+    build: .
+    volumes:
+      - ./:/app