Commit
•
fa0a9c4
1
Parent(s):
3947dab
Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ubuntu:latest
|
2 |
+
VOLUME /app/webui
|
3 |
+
WORKDIR /app/webui
|
4 |
+
RUN apt-get update
|
5 |
+
RUN apt-get install -y vim python3 libgoogle-perftools4 \
|
6 |
+
libtcmalloc-minimal4 git python3-pip ffmpeg libsm6 libxext6 \
|
7 |
+
&& adduser webui-user
|
8 |
+
RUN pip install --no-cache-dir --upgrade pip \
|
9 |
+
&& pip install --no-cache-dir packaging==21.3 \
|
10 |
+
&& pip install --no-cache-dir httpx==0.24.1
|
11 |
+
EXPOSE 7860
|
12 |
+
USER webui-user
|
13 |
+
RUN git config --global --add safe.directory /app/webui
|
14 |
+
CMD ["./run.sh"]
|