docker and docker compose

This commit is contained in:
wt committed 2023-02-08 11:05:16 +07:00
1 parent a07a3daf85
commit cb9e7a626b
5 files changed
+17 -6

No files matched your search

+1
View File
@@ -2,3 +2,4 @@
Dockerfile Dockerfile
.gitignore .gitignore
.idea .idea
database.sqlite
+4 -3
View File
@@ -14,8 +14,9 @@ RUN apk add --no-cache tesseract-ocr python3 py3-numpy && \
RUN pip3 install -r requirements.txt --no-cache-dir RUN pip3 install -r requirements.txt --no-cache-dir
COPY entrypoint.sh /app
RUN chmod +x /app/entrypoint.sh
COPY . /app COPY . /app
ENTRYPOINT ["python3"] ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["main.py"]
+7
View File
@@ -0,0 +1,7 @@
version: "3.11"
services:
bot:
build: .
command: python main.py
restart: always
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/sh
exec "$@"
+3 -3
View File
@@ -5,11 +5,11 @@ cycler==0.11.0
fonttools==4.37.4 fonttools==4.37.4
idna==3.4 idna==3.4
kiwisolver==1.4.4 kiwisolver==1.4.4
matplotlib==3.6.1 # matplotlib==3.6.1
numpy==1.23.4 # numpy==1.23.4
packaging==21.3 packaging==21.3
peewee==3.15.3 peewee==3.15.3
Pillow==9.2.0 # Pillow==9.2.0
pyparsing==3.0.9 pyparsing==3.0.9
pyTelegramBotAPI==4.7.0 pyTelegramBotAPI==4.7.0
python-dateutil==2.8.2 python-dateutil==2.8.2