Update Dockerfile
Browse files- Dockerfile +4 -27
Dockerfile
CHANGED
@@ -1,37 +1,14 @@
|
|
1 |
#a private ai web
|
2 |
-
FROM docker.io/ubuntu:24.04
|
|
|
|
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
#RUN chmod -R 777 /app
|
7 |
|
8 |
#RUN apt-get update && apt-get install python3 pip -y
|
9 |
#RUN python3 --version
|
10 |
#RUN python3 -m pip install --upgrade pip
|
11 |
|
12 |
-
#RUN pip install --prefix=/root/ open-webui
|
13 |
-
#RUN pip install --break-system-packages open-webui -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
|
14 |
-
|
15 |
-
RUN apt update && apt install -y ca-certificates curl gnupg && install -m 0755 -d /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && chmod a+r /etc/apt/keyrings/docker.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu noble stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
16 |
-
RUN pwd
|
17 |
-
RUN ls
|
18 |
-
RUN whoami
|
19 |
-
RUN systemctl enable docker
|
20 |
-
#RUN systemctl start docker
|
21 |
-
RUN service docker start
|
22 |
-
|
23 |
-
#RUN cd /root/ && docker run -d -p 8080:8080 -e OPENAI_API_KEY=your_secret_key -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
|
24 |
-
RUN docker run -d \
|
25 |
-
--name open-webui \
|
26 |
-
-p 8080:8080 \
|
27 |
-
-e OPENAI_API_KEY=your_secret_key \
|
28 |
-
-v open-webui:/app/backend/data \
|
29 |
-
-v /var/run/docker.sock:/var/run/docker.sock \
|
30 |
-
--privileged \
|
31 |
-
--restart always \
|
32 |
-
ghcr.io/open-webui/open-webui:main
|
33 |
-
#FROM ghcr.io/open-webui/open-webui:main
|
34 |
-
#CMD ["open-webui", "serve"]
|
35 |
|
36 |
EXPOSE 8080
|
37 |
|
|
|
1 |
#a private ai web
|
2 |
+
#FROM docker.io/ubuntu:24.04
|
3 |
+
FROM ghcr.io/open-webui/open-webui:main
|
4 |
+
RUN chmod -R 777 ./data
|
5 |
|
6 |
+
RUN chmod -R 777 /app
|
|
|
|
|
7 |
|
8 |
#RUN apt-get update && apt-get install python3 pip -y
|
9 |
#RUN python3 --version
|
10 |
#RUN python3 -m pip install --upgrade pip
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
EXPOSE 8080
|
14 |
|