From 875188dc6fda073df1c4d83e4b179fb6114c07de Mon Sep 17 00:00:00 2001 From: Saba Date: Sun, 23 Jan 2022 14:57:28 -0500 Subject: [PATCH] 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 --- Dockerfile | 21 +++++++++++++++++++++ docker-compose.yml | 0 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b3e71fa6 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..e69de29b