File size: 782 Bytes
d0ef3c4
2957add
b94a91e
 
d3fc960
 
 
d500898
465ce81
 
d500898
 
d0ef3c4
3438299
 
 
 
bdf87e8
3600822
299ac55
 
 
3600822
 
 
2957add
 
3600822
a730d54
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 python:3.11

WORKDIR /app

# Install Node.js and npm
RUN apt-get update && apt-get install -y nodejs npm

# Clone OpenWebUI v0.6.36
RUN git clone --branch v0.6.36 https://github.com/open-webui/open-webui.git open-webui

# Install backend dependencies
RUN pip install -r open-webui/backend/requirements.txt

# Install missing frontend dependencies
RUN cd open-webui && npm install y-protocols y-prosemirror --legacy-peer-deps

# Build frontend
RUN cd open-webui && npm install --legacy-peer-deps && npm run build

# Add backend directory to Python path
ENV PYTHONPATH=/app/open-webui/backend

# Create data directory
RUN mkdir -p /app/open-webui/backend/data

EXPOSE 8080

# Run OpenWebUI
CMD ["python", "open-webui/backend/open_webui/main.py", "--host=0.0.0.0", "--port=8080"]