|
|
|
|
|
|
|
FROM cyb3rward0g/jupyter-base:0.0.7 |
|
LABEL maintainer="Roberto Rodriguez @Cyb3rWard0g" |
|
LABEL description="Dockerfile Security Datasets 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 pandas==1.3.1 attackcti==2.26.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} |