mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Initialize working on #20 to add Docker support
- Add a Dockerfile which uses an Ubuntu image to install relevant dependencies (exif) and uses a Miniconda image for setting up/reusing the conda environment - Add a dummy docker-compose file
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM ubuntu:18.04
|
||||
|
||||
# Install system dependencies and Python packages
|
||||
RUN apt-get update -y && \
|
||||
apt-get -y install libimage-exiftool-perl
|
||||
|
||||
FROM continuumio/miniconda3
|
||||
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
|
||||
COPY environment.yml .
|
||||
COPY config.yml .
|
||||
|
||||
RUN conda env create -f environment.yml
|
||||
|
||||
EXPOSE 5000
|
||||
COPY . .
|
||||
# CMD python3 -m main -c=config.yml -vv
|
||||
CMD ["conda", "run", "--name", "semantic-search", "python3", "-m", "main", "-c=config.yml", "-vv"]
|
||||
0
docker-compose.yml
Normal file
0
docker-compose.yml
Normal file
Reference in New Issue
Block a user