Skip to content

Update Dockerfile #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 3 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,12 @@
# ATTACK Python Client script: Jupyter Environment Dockerfile

ARG OWNER=jupyter
ARG BASE_CONTAINER=$OWNER/base-notebook
FROM $BASE_CONTAINER
FROM jupyter/base-notebook

LABEL maintainer="Jupyter Project <[email protected]>"

# 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
RUN python3 -m pip install --upgrade six attackcti pandas 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}
WORKDIR ${HOME}