Files
lollms-webui/Dockerfile
2023-08-29 22:39:37 +02:00

29 lines
670 B
Docker

FROM python:3.10
WORKDIR /srv
COPY ./requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app.py /srv/app.py
COPY ./api /srv/api
COPY ./static /srv/static
COPY ./templates /srv/templates
COPY ./web /srv/web
COPY ./assets /srv/assets
# TODO: this is monkey-patch for check_update() function, should be disabled in Docker
COPY ./.git /srv/.git
VOLUME [ "/data" ]
# Monkey-patch: send a "enter" keystroke to python to confirm the first launch process
CMD ["/bin/bash", "-c", " \
echo -ne '\n' | \
python app.py \
--host 0.0.0.0 \
--port 9600 \
--db_path /data/Documents/databases/database.db \
--config /configs/config.yaml \
"]