forked from OTRF/ATTACK-Python-Client
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 848 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 848 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
# ATTACK Python Client script: Jupyter Environment Dockerfile
ARG OWNER=jupyter
ARG BASE_CONTAINER=$OWNER/base-notebook
FROM $BASE_CONTAINER
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
# Fix: https://github.com/hadolint/hadolint/wiki/DL4006
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root
# Install all OS dependencies for fully functional notebook server
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends
RUN python3 -m pip install --upgrade six==1.15.0 attackcti==0.3.8 pandas==1.3.5 altair vega
COPY docs/intro.ipynb ${HOME}/docs/
COPY docs/playground ${HOME}/docs/playground
COPY docs/presentations ${HOME}/docs/presentations
# Switch back to jovyan to avoid accidental container runs as root
USER ${NB_UID}
WORKDIR ${HOME}