Spaces:
Running
Running
Commit
·
fdd1252
1
Parent(s):
47ca12e
yees
Browse files- Dockerfile +1 -7
- routes/config.json +2 -1
- routes/siteRoutes/systemInfo.py +2 -1
Dockerfile
CHANGED
@@ -4,13 +4,7 @@ COPY . /app
|
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
RUN apt update && apt install ffmpeg software-properties-common -y
|
8 |
-
|
9 |
-
RUN add-apt-repository ppa:deadsnakes/ppa
|
10 |
-
|
11 |
-
RUN apt update && apt install python3.11 python3.11-pip
|
12 |
-
|
13 |
-
RUN sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
|
14 |
|
15 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
16 |
|
|
|
4 |
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
RUN apt update && apt install ffmpeg software-properties-common python3 python3-pip python-is-python3 -y
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
10 |
|
routes/config.json
CHANGED
@@ -4,5 +4,6 @@
|
|
4 |
"temp-path": "/app/static/temp",
|
5 |
"static-path": "/app/static",
|
6 |
"previews-path": "/app/static/previews",
|
7 |
-
"signatures-db": "/app/signatures.db"
|
|
|
8 |
}
|
|
|
4 |
"temp-path": "/app/static/temp",
|
5 |
"static-path": "/app/static",
|
6 |
"previews-path": "/app/static/previews",
|
7 |
+
"signatures-db": "/app/signatures.db",
|
8 |
+
"buildVersion": "1.0 build47"
|
9 |
}
|
routes/siteRoutes/systemInfo.py
CHANGED
@@ -25,4 +25,5 @@ def mem ():
|
|
25 |
return mem_info
|
26 |
|
27 |
def systemInfo():
|
28 |
-
|
|
|
|
25 |
return mem_info
|
26 |
|
27 |
def systemInfo():
|
28 |
+
config = helpers.configFile()
|
29 |
+
return {"CPU_INFO": cpu(), "MEM_INFO": mem(), "API_VERSION": config['buildVersion']}
|