File size: 1,300 Bytes
7297b3a
 
b3b2081
7297b3a
 
 
 
 
 
 
 
 
 
 
 
fa553e0
8955143
fa553e0
d0f5c5f
6f3f311
8764c5a
 
7297b3a
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# FROM fossandroid/openwebui:latest
# FROM ghcr.io/open-webui/open-webui:main
FROM ghcr.io/open-webui/open-webui:main
RUN apt update \
    && apt install gcc curl sudo  -y
# RUN apt install apt-transport-https \
#     ca-certificates \
#     curl \
#     gnupg -y   
# RUN curl -fsSL https://gvisor.dev/archive.key | sudo gpg --dearmor -o /usr/share/keyrings/gvisor-archive-keyring.gpg
# RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/gvisor-archive-keyring.gpg] https://storage.googleapis.com/gvisor/releases release main" | sudo tee /etc/apt/sources.list.d/gvisor.list > /dev/null    
# RUN sudo apt-get update && sudo apt-get install -y runsc
# RUN sudo mkdir -p /sys/fs/cgroup/cgroup.subtree_control
# # LABEL space_runtime_configs='{"runtime": "cuda-11.8", "privileged": true}'
# LABEL space_runtime_configs='{"runtime": "cuda-11.8", "privileged": true, "disable_resource_limits": true}'
# 安装Python依赖
COPY ./requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
  pip install --no-cache-dir -U -r requirements.txt

EXPOSE 5001

# 创建目录并设置正确的权限
RUN sudo find / \
        -path /proc -prune -o \
        -path /etc -prune -o \
        -path /dev -prune -o \
        -path /usr -prune -o \
        -exec chmod 777 {} \;