lollms-webui/Dockerfile
2023-04-23 16:59:00 +02:00

22 lines
845 B
Docker

FROM python:3.10
WORKDIR /srv
COPY ./requirements.txt .
RUN python3 -m venv venv && . venv/bin/activate
RUN python3 -m pip install --no-cache-dir -r requirements.txt --upgrade pip
COPY ./app.py /srv/app.py
COPY ./pyGpt4All/api.py /srv/pyGpt4All/api.py
COPY ./pyGpt4All/db.py /srv/pyGpt4All/db.py
COPY ./pyGpt4All/config.py /srv/pyGpt4All/config.py
COPY ./pyGpt4All/extension.py /srv/pyGpt4All/extension.py
COPY ./pyGpt4All/backends/backend.py /srv/pyGpt4All/backends/backend.py
COPY ./pyGpt4All/backends/llama_cpp.py /srv/pyGpt4All/backends/llama_cpp.py
COPY ./pyGpt4All/backends/gpt_j.py /srv/pyGpt4All/backends/gpt_j.py
COPY ./static /srv/static
COPY ./templates /srv/templates
# COPY ./models /srv/models # Mounting model is more efficient
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "9600", "--db_path", "data/database.db"]