mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
875188dc6f
- 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
21 lines
470 B
Docker
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"]
|