docker and docker compose
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
.gitignore
|
||||
.idea
|
||||
.idea
|
||||
database.sqlite
|
||||
+4
-3
@@ -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"]
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
version: "3.11"
|
||||
|
||||
services:
|
||||
bot:
|
||||
build: .
|
||||
command: python main.py
|
||||
restart: always
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec "$@"
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user