From 8e5f9fb80297ea97cf42e10eec4c9a8a98971f28 Mon Sep 17 00:00:00 2001 From: Vijay Yadev Date: Thu, 3 Sep 2020 11:38:55 -0400 Subject: [PATCH] docker file --- Dockerfile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..fe796622 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +FROM python:3.6 +FROM ubuntu:18.04 + +MAINTAINER fnndsc "vijay.yadav@aicure.com" + +RUN apt-get update && apt-get install -y python3-pip \ + && apt-get install -y wget \ + && apt-get install -y automake --upgrade \ + && apt-get install -y libtool --upgrade \ + && apt-get -y install ffmpeg \ + && apt-get install -y lsb-core \ + && apt-get install -y libavcodec-dev \ + && apt-get install -y libavformat-dev \ + && apt-get install -y libavdevice-dev \ + && apt-get install -y libboost-all-dev +RUN ln -sfn /usr/bin/pip3 /usr/bin/pip + +COPY . /app + +RUN echo "Installing OpenFace..." +WORKDIR /app/pkg/OpenFace +RUN bash ./download_models.sh +RUN dpkg --configure -a +RUN su -c ./install.sh +RUN echo "Done OpenFace!" + +WORKDIR /app + +RUN pip install --upgrade pip +RUN pip install -r requirements.txt +RUN echo "Requirement txt done!" + +CMD [ "python", "./process_dir.py" ] \ No newline at end of file