Spaces:
Runtime error
Runtime error
natexcvi
commited on
Commit
•
bffc609
1
Parent(s):
1150b5c
Fix secret name
Browse files- .dockerignore +3 -0
- .gitignore +3 -0
- Dockerfile +1 -1
- main.py +2 -1
.dockerignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
.venv
|
2 |
+
__pycache__
|
3 |
+
.env
|
.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
.venv
|
2 |
+
__pycache__
|
3 |
+
.env
|
Dockerfile
CHANGED
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \
|
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
-
RUN --mount=type=secret,id=
|
13 |
RUN --mount=type=secret,id=TELEGRAM_USER,mode=0444,required=true
|
14 |
|
15 |
COPY . .
|
|
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
+
RUN --mount=type=secret,id=TELEGRAM_BOT_TOKEN,mode=0444,required=true
|
13 |
RUN --mount=type=secret,id=TELEGRAM_USER,mode=0444,required=true
|
14 |
|
15 |
COPY . .
|
main.py
CHANGED
@@ -3,7 +3,8 @@ import random
|
|
3 |
import statistics
|
4 |
from typing import Dict, Optional
|
5 |
|
6 |
-
from fastapi import BackgroundTasks, Body, FastAPI, Response, UploadFile,
|
|
|
7 |
|
8 |
from schema import *
|
9 |
from telegram_bot import checkup_messages, send_message_to_user
|
|
|
3 |
import statistics
|
4 |
from typing import Dict, Optional
|
5 |
|
6 |
+
from fastapi import (BackgroundTasks, Body, FastAPI, Response, UploadFile,
|
7 |
+
status)
|
8 |
|
9 |
from schema import *
|
10 |
from telegram_bot import checkup_messages, send_message_to_user
|