-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
33 lines (25 loc) · 832 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM continuumio/miniconda3
LABEL maintainer="[email protected]"
LABEL coursename="GEOG0111"
LABEL department="Geography"
LABEL university="UCL"
LABEL version="1.0"
#
WORKDIR /home/user
# add notebooks to <WORKDIR>
ADD *.ipynb geog0111/
ADD images geog0111/
ADD data geog0111/
# Create the environment:
COPY environment.yml .
COPY postBuild .
# create env geog0111
RUN conda update -n base -c defaults conda
RUN conda env create -f environment.yml
SHELL ["conda", "run", "-n", "geog0111", "/bin/bash", "-c"]
RUN conda install jupyter
# Make RUN commands use the new environment:
SHELL ["conda", "run", "-n", "geog0111", "/bin/bash"]
RUN postBuild
# The code to run when container is started:
ENTRYPOINT ["conda", "run", "-n", "geog0111", "jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]