-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile2022
More file actions
29 lines (21 loc) · 816 Bytes
/
Dockerfile2022
File metadata and controls
29 lines (21 loc) · 816 Bytes
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
# use jupyter minimal notebook as base for your image
# it has eg conda already installed
FROM jupyter/minimal-notebook
# set home environment variable to point to user directory
ENV HOME /home/$NB_USER
# Set the commit hash for the version of the AutoGIS site
# that has the appropriate environment.yml defined (new year, new packages)
ENV AUTOGIS_SITE_COMMIT "41a2c8d"
# install curl
USER root
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get clean
USER $NB_USER
# Get the environment.yml from AutoGIS’ repository
RUN curl --silent -L \
https://raw.githubusercontent.com/Automating-GIS-processes/site/${AUTOGIS_SITE_COMMIT}/ci/environment.yml \
-o /tmp/environment.yml
# ... and install it
RUN conda env update --file /tmp/environment.yml --name base \
&& conda clean -afy