khoj/Dockerfile
Saba 875188dc6f 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
2022-01-23 14:57:28 -05:00

21 lines
470 B
Docker

# 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"]