forked from nebari-dev/nebari-docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.jupyterhub
40 lines (29 loc) · 1.32 KB
/
Dockerfile.jupyterhub
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
34
35
36
37
38
39
40
# Copyright (c) Nebari Development Team.
# Distributed under the terms of the Modified BSD License.
# Usage:
# ------
#
# To make a local build of the container, from the root directory:
# docker build -f Dockerfile.jupyterhub -t nebari-jupyterhub:latest .
FROM ubuntu:20.04
LABEL MAINTAINER="Nebari development team"
COPY scripts/install-apt-minimal.sh /opt/scripts/install-apt-minimal.sh
RUN /opt/scripts/install-apt-minimal.sh
COPY scripts/fix-permissions /opt/scripts/fix-permissions
ENV MAMBAFORGE_VERSION 4.13.0-1
ENV MAMBAFORGE_SHA256 412b79330e90e49cf7e39a7b6f4752970fcdb8eb54b1a45cc91afe6777e8518c
SHELL ["/bin/bash", "-c"]
ENV PATH="/opt/conda/bin:$PATH:/opt/scripts"
# ============== base install ===============
COPY scripts/install-conda.sh /opt/scripts/install-conda.sh
RUN /opt/scripts/install-conda.sh
# ========== jupyterhub install ===========
COPY jupyterhub/environment.yaml /opt/jupyterhub/environment.yaml
COPY scripts/install-conda-environment.sh /opt/scripts/install-conda-environment.sh
RUN /opt/scripts/install-conda-environment.sh /opt/jupyterhub/environment.yaml 'false'
COPY jupyterhub /opt/jupyterhub
RUN /opt/jupyterhub/postBuild
WORKDIR /srv/jupyterhub
# So we can actually write a db file here
RUN fix-permissions /srv/jupyterhub
CMD ["jupyterhub", "--config", "/usr/local/etc/jupyterhub/jupyterhub_config.py"]