mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +00:00
Resolve GUI Issues in Docker Build
-17354aaInstall `pyqt` system package in Docker image to get qt dependencies -5d3aebaDo not start GUI when Khoj started from Docker -26ff66f(Re-)Enable image search via Docker image as image search issues fixed Resolves #76
This commit is contained in:
@@ -4,7 +4,7 @@ LABEL org.opencontainers.image.source https://github.com/debanjum/khoj
|
||||
|
||||
# Install System Dependencies
|
||||
RUN apt-get update -y && \
|
||||
apt-get -y install libimage-exiftool-perl
|
||||
apt-get -y install libimage-exiftool-perl python3-pyqt5
|
||||
|
||||
# Copy Application to Container
|
||||
COPY . /app
|
||||
|
||||
@@ -20,11 +20,11 @@ content-type:
|
||||
compressed-jsonl: /data/embeddings/transactions.jsonl.gz
|
||||
embeddings-file: /data/embeddings/transaction_embeddings.pt
|
||||
|
||||
# image:
|
||||
# input-directories: ["/data/images/"]
|
||||
# embeddings-file: "/data/embeddings/image_embeddings.pt"
|
||||
# batch-size: 50
|
||||
# use-xmp-metadata: true
|
||||
image:
|
||||
input-directories: ["/data/images/"]
|
||||
embeddings-file: "/data/embeddings/image_embeddings.pt"
|
||||
batch-size: 50
|
||||
use-xmp-metadata: false
|
||||
|
||||
music:
|
||||
input-files: ["/data/music/music.org"]
|
||||
|
||||
@@ -26,4 +26,4 @@ services:
|
||||
- ./tests/data/embeddings/:/data/embeddings/
|
||||
- ./tests/data/models/:/data/models/
|
||||
# Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/
|
||||
command: --host="0.0.0.0" --port=8000 -c=config/khoj_docker.yml -vv
|
||||
command: --no-gui --host="0.0.0.0" --port=8000 -c=config/khoj_docker.yml -vv
|
||||
|
||||
Reference in New Issue
Block a user