forked from OTRF/Security-Datasets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (25 loc) · 770 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
36
# Mordor script: Jupyter Environment Dockerfile
# Author: Roberto Rodriguez (@Cyb3rWard0g)
# License: GPL-3.0
FROM cyb3rward0g/jupyter-pyspark:0.0.4
LABEL maintainer="Roberto Rodriguez @Cyb3rWard0g"
LABEL description="Dockerfile Mordor Project."
ARG NB_USER
ARG NB_UID
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
ENV PATH "$HOME/.local/bin:$PATH"
USER root
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
USER ${NB_USER}
RUN python3 -m pip install openhunt==1.7.4 attackcti==0.3.0 --user
COPY docs ${HOME}/docs
USER root
RUN chown ${NB_USER} /usr/local/share/jupyter/kernels/pyspark3/kernel.json \
&& chown -R ${NB_USER}:${NB_USER} ${HOME} ${JUPYTER_DIR}
WORKDIR ${HOME}
USER ${NB_USER}