OpenwebUI / Dockerfile
abubasith86's picture
Update Dockerfile
3438299 verified
raw
history blame contribute delete
782 Bytes
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"]