mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01: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:
parent
974690939c
commit
875188dc6f
2 changed files with 21 additions and 0 deletions
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
Loading…
Reference in a new issue