-
Notifications
You must be signed in to change notification settings - Fork 559
/
Copy pathDockerfile
36 lines (28 loc) · 1.01 KB
/
Dockerfile
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
31
32
33
34
FROM python:3.11-slim
# Add retry logic and include OpenGL libraries
RUN apt-get update --option Acquire::Retries=5 \
&& apt-get install -y --no-install-recommends \
git \
build-essential \
xauth \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Clone LoLLMs-webui repository with submodules
RUN git clone --recursive https://github.com/ParisNeo/lollms-webui.git . && \
git submodule update --init --recursive
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install torch
RUN pip install -e lollms_core
RUN echo "lollms_path: /app/lollms-webui/lollms_core/lollms\nlollms_personal_path: /app/personal_data" > /app/global_paths_cfg.yaml
# Expose default web UI port
EXPOSE 9600
# Set the entrypoint to our start script
CMD ["python", "/app/app.py", "--host", "0.0.0.0", "--force-accept-remote-access"]