Skip to content

Commit

Permalink
Dockerize and fix fiirumi issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias-YJ committed Oct 3, 2021
1 parent d926439 commit f95f334
Show file tree
Hide file tree
Showing 10 changed files with 509 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.env

logs/
!example*
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.9-slim

WORKDIR /bot
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

COPY assets ./assets
COPY vaalilakanabot2021.py vaalilakanabot2021.py

CMD ["python3", "vaalilakanabot2021.py"]
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.4'
services:
bot:
build: .
image: vaalilakanabot:latest
volumes:
- ./data:/bot/data:rw
- ./logs:/bot/logs:rw
env_file:
- bot.env
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python-telegram-bot
requests
lxml
Loading

0 comments on commit f95f334

Please sign in to comment.