Zhofang commited on
Commit
3308e75
1 Parent(s): d511ad9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -5
Dockerfile CHANGED
@@ -1,7 +1,15 @@
1
- FROM python:3.11-alpine
2
- WORKDIR /app
3
- COPY . .
 
 
4
  ENV STATUS_CUSTOM_ROOT_PATH=/host_root
5
- RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
6
- CMD ["python", "status.py", "--no-config"]
 
 
 
 
 
7
  EXPOSE 7860
 
 
1
+ FROM python:3.9
2
+ RUN chmod 777 -R /root
3
+ WORKDIR /
4
+ #RUN chmod 777 -R /
5
+ #pwease
6
  ENV STATUS_CUSTOM_ROOT_PATH=/host_root
7
+ RUN apt update -y && apt upgrade -y
8
+ RUN apt-get install -y nodejs npm
9
+ RUN apt install python3 -y && apt install python3-pip -y
10
+ RUN pip3 install flask --break-system-packages
11
+ RUN git clone https://github.com/JohanChungus/Status
12
+ RUN cd Status && pip install -r requirements.txt && npm install koa-monitor --save && npm install
13
+ COPY . .
14
  EXPOSE 7860
15
+ CMD ["python3", "Status/status.py"]