From 5a86b283be6ddacabb8b07a2b812ed58f160e100 Mon Sep 17 00:00:00 2001 From: Fedor Baart Date: Mon, 28 Aug 2017 12:32:30 +0200 Subject: [PATCH] dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a15b140 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM continuumio/miniconda3 +MAINTAINER Fedor Baart +ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 +# update system and install wget +RUN \ + apt-get install -y apt-utils && \ + echo "deb http://httpredir.debian.org/debian jessie-backports main non-free" >> /etc/apt/sources.list && \ + echo "deb-src http://httpredir.debian.org/debian jessie-backports main non-free" >> /etc/apt/sources.list && \ + apt-get update --fix-missing && \ + apt-get install -y wget unzip build-essential +# switch to python 3.5 (no gdal in 3.6) +RUN conda create -y -n py35 python=3.5 netcdf4 matplotlib pandas pyproj +COPY ./ app/ +ENV PATH /opt/conda/envs/py35/bin:$PATH +ENV MPLBACKEND Agg +RUN cd /app && pip install -r requirements.txt && pip install -e . +# Create a run directory with +RUN cd app && mount_efs data +WORKDIR app +EXPOSE 8080 +# not sure what this is +ENTRYPOINT [ "/usr/bin/tini", "--" ] +CMD [ "stathakis" ]