docker and docker compose

This commit is contained in:
wt
2023-02-08 11:05:16 +07:00
parent a07a3daf85
commit cb9e7a626b
5 changed files with 18 additions and 7 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
.dockerignore
Dockerfile
.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
COPY entrypoint.sh /app
RUN chmod +x /app/entrypoint.sh
COPY . /app
ENTRYPOINT ["python3"]
CMD ["main.py"]
ENTRYPOINT ["/app/entrypoint.sh"]
+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
idna==3.4
kiwisolver==1.4.4
matplotlib==3.6.1
numpy==1.23.4
# matplotlib==3.6.1
# numpy==1.23.4
packaging==21.3
peewee==3.15.3
Pillow==9.2.0
# Pillow==9.2.0
pyparsing==3.0.9
pyTelegramBotAPI==4.7.0
python-dateutil==2.8.2