forked from cwaldbieser/jhub_remote_user_authenticator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
35 lines (26 loc) · 793 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
34
35
ARG BASE_IMAGE=ubuntu:focal-20210416
FROM $BASE_IMAGE AS builder
USER root
RUN apt-get update && apt-get install --no-install-recommends -yq \
ca-certificates \
locales \
python3-dev \
python3-pip \
python3-pycurl \
npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g configurable-http-proxy
ADD jhubauthenticators /app/jhubauthenticators
ADD setup.py /app/setup.py
ADD version.py /app/version.py
ADD requirements.txt /app/requirements.txt
ADD requirements-dev.txt /app/requirements-dev.txt
ADD tests/requirements.txt /app/tests/requirements.txt
WORKDIR /app
RUN touch README.rst \
&& pip3 install .
RUN pip3 install dockerspawner
WORKDIR /etc/jupyterhub
# Make sure the jupyter_config is mounted upon run
CMD ["jupyterhub"]