Skip to content

Commit c3c2223

Browse files
committed
update
1 parent 0a7a332 commit c3c2223

6 files changed

Lines changed: 12 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,4 @@ cython_debug/
163163

164164
.vs/
165165

166+
.vscode/

Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
FROM python:3.9.18-slim-bullseye
1+
FROM python:3.14.0-slim-bookworm
2+
23
WORKDIR /app
3-
COPY ./ /app/
4+
5+
COPY requirements.txt .
6+
47
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
COPY ./src/ .
10+
511
ENV TELEGRAM_BOT_API_KEY=""
612
ENV GEMINI_API_KEYS=""
7-
CMD ["sh", "-c", "python main.py ${TELEGRAM_BOT_API_KEY} ${GEMINI_API_KEYS}"]
13+
14+
CMD ["sh", "-c", "python -u main.py ${TELEGRAM_BOT_API_KEY} ${GEMINI_API_KEYS}"]
File renamed without changes.
File renamed without changes.

handlers.py renamed to src/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from md2tgmd import escape
44
import traceback
55
from config import conf
6-
import gemini
6+
import gemini as gemini
77

88
error_info = conf["error_info"]
99
before_generate_info = conf["before_generate_info"]
File renamed without changes.

0 commit comments

Comments
 (0)