Skip to content

Commit

Permalink
dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor Baart committed Aug 28, 2017
1 parent 9f5808a commit 5a86b28
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM continuumio/miniconda3
MAINTAINER Fedor Baart <fedor.baart@deltares.nl>
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" ]

0 comments on commit 5a86b28

Please sign in to comment.