Update Dockerfile
Browse files- Dockerfile +13 -5
Dockerfile
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
-
FROM python:3.
|
2 |
-
|
3 |
-
|
|
|
|
|
4 |
ENV STATUS_CUSTOM_ROOT_PATH=/host_root
|
5 |
-
RUN
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
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"]
|