-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
30 lines (22 loc) · 809 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
# Use the miminal-notebook as base container
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
USER root
# Install curl, nestat, jq, netcat, iputils-ping
RUN apt-get update && \
apt-get install -y curl net-tools jq netcat iputils-ping && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER jovyan
# Copy the requirements.txt file
COPY requirements.txt requirements.txt
# Install all Python dependencies
RUN python3 -m pip install -r requirements.txt
# Install Prism V2 Agent generated client controller library
# Copy the library folder
ADD openapi-generator/prism-agent-client .
# Install all Python dependencies
RUN pip install --no-cache-dir -e .
# Install the widgets
RUN jupyter nbextension enable --py widgetsnbextension
# The base container takes care of the rest.