lollms-webui/Dockerfile

37 lines
1.0 KiB
Docker
Raw Normal View History

2024-08-27 21:05:20 +02:00
FROM python:3.11-slim
2025-01-28 00:13:59 +01:00
# 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 \
2024-08-27 21:05:20 +02:00
&& rm -rf /var/lib/apt/lists/*
2025-01-28 00:13:59 +01:00
# Set working directory
WORKDIR /app
2024-08-27 21:58:44 +02:00
2025-01-28 00:13:59 +01:00
# Clone LoLLMs-webui repository with submodules
RUN git clone --recursive https://github.com/ParisNeo/lollms-webui.git . && \
git submodule update --init --recursive
2024-08-27 21:58:44 +02:00
2025-01-28 00:13:59 +01:00
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install torch
RUN pip install -e lollms_core
2025-01-29 00:03:51 +01:00
RUN mkdir /app/personal_data
2025-01-28 00:13:59 +01:00
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
2024-08-27 21:58:44 +02:00
2025-01-28 00:13:59 +01:00
# Set the entrypoint to our start script
2025-01-28 01:30:16 +01:00
CMD ["python", "/app/app.py", "--host", "0.0.0.0", "--force-accept-remote-access"]
2024-08-27 21:58:44 +02:00