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:
Saba 2022-01-23 14:57:28 -05:00
parent 974690939c
commit 875188dc6f
2 changed files with 21 additions and 0 deletions

21
Dockerfile Normal file
View 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
View file