Update Dockerfile
Browse files- Dockerfile +5 -12
Dockerfile
CHANGED
@@ -1,14 +1,7 @@
|
|
1 |
-
FROM python:3.
|
2 |
-
|
3 |
-
WORKDIR /
|
4 |
-
#RUN chmod 777 -R /
|
5 |
-
#pwease
|
6 |
-
RUN apt update -y && apt upgrade -y
|
7 |
-
RUN apt-get install -y nodejs npm
|
8 |
-
RUN apt install python3 -y && apt install python3-pip -y
|
9 |
-
RUN pip3 install flask --break-system-packages
|
10 |
-
RUN git clone https://github.com/JohanChungus/Status
|
11 |
-
RUN cd Status && pip install -r requirements.txt && npm install koa-monitor --save && npm install
|
12 |
COPY . .
|
|
|
|
|
|
|
13 |
EXPOSE 7860
|
14 |
-
CMD ["python3", "Status/status.py"]
|
|
|
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
|
|