-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (40 loc) · 1.65 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright (c) NukeLab Development Team.
# Distributed under the terms of the Modified BSD License.
# Use the Ubuntu 22.04 image as a base
ARG BASE_IMAGE=ubuntu:22.04
FROM $BASE_IMAGE
# Install dependencies
RUN apt-get update && \
apt-get install -y \
python3 \
python3-pip \
nodejs \
npm \
libssl-dev \
libcurl4-openssl-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Install configurable-http-proxy
RUN npm install -g configurable-http-proxy
# Install JupyterHub and its dependencies
RUN pip3 install jupyterhub pycurl jupyterhub-idle-culler
# Install authenticators and spawners
RUN pip3 install oauthenticator dockerspawner jupyterhub-nativeauthenticator
# Copy nukelab into the image
COPY nukelab.png ./nukelab.png
# Copy the JupyterHub configuration file into the image
COPY jupyterhub/jupyterhub_config.py /jupyterhub_config.py
#Copy favicon into the image
COPY jupyterhub/favicon.ico /usr/local/share/jupyterhub/static/favicon.ico
# Copy logo into the image
COPY jupyterhub/logo.svg /usr/local/share/jupyterhub/static/logo.svg
COPY jupyterhub/logo.png /usr/local/share/jupyterhub/static/logo.png
# Copy manifest into the image
COPY jupyterhub/manifest.json /usr/local/share/jupyterhub/static/manifest.json
# Copy service-worker into the image
COPY jupyterhub/service-worker.js /usr/local/share/jupyterhub/static/service-worker.js
# Copy NukeLab templates file into the image
COPY jupyterhub/templates /usr/local/share/jupyterhub/templates
# Recent Bug
RUN mkdir -p /etc/pki/tls/certs && ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
# Start JupyterHub with the configuration file
CMD ["jupyterhub"]