From 0e3a71ea8314bcd9104c88e96469476d8d2773af Mon Sep 17 00:00:00 2001 From: saptarsi saha Date: Wed, 14 Oct 2020 22:41:00 +0530 Subject: [PATCH] Trying to dockerize the application.. --- Dockerfile | 18 ++++++++++++++++++ docker-compose.yml | 12 ++++++++++++ requirements.txt | 1 - 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ac7dc12 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Set the base image using miniconda +FROM continuumio/miniconda3:4.3.27 + +# Set environmental variable(s) +ENV ACCEPT_INTEL_PYTHON_EULA=yes + +# Set working directory +WORKDIR /home/notebooks + +# Add requirements file +ADD requirements.txt /app/ + +# Installs, clean, and update +RUN pip install -r /app/requirements.txt + +CMD jupyter notebook --port=8888 --ip=0.0.0.0 --allow-root + + \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6af0fe1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' +services: + notebook: + container_name: python_notebook + labels: + description: Intel Python 2 using Jupyter Notebooks + name: jupyter notebook + ports: + - "8888:8888" + volumes: + - ~/notebooks:/home/notebooks + build: . \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 149fb95..8d50ba7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,3 @@ scipy h5py astropy icepyx -pointCollection