khulnasoft
commited on
Create Dockerfile
Browse files- Dockerfile +35 -0
Dockerfile
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Author: Roberto Rodriguez (@Cyb3rWard0g)
|
2 |
+
# License: MIT
|
3 |
+
|
4 |
+
FROM cyb3rward0g/jupyter-base:0.0.7
|
5 |
+
LABEL maintainer="Roberto Rodriguez @Cyb3rWard0g"
|
6 |
+
LABEL description="Dockerfile Security Datasets Project."
|
7 |
+
|
8 |
+
ARG NB_USER
|
9 |
+
ARG NB_UID
|
10 |
+
ENV NB_USER jovyan
|
11 |
+
ENV NB_UID 1000
|
12 |
+
ENV HOME /home/${NB_USER}
|
13 |
+
ENV PATH "$HOME/.local/bin:$PATH"
|
14 |
+
|
15 |
+
USER root
|
16 |
+
|
17 |
+
RUN adduser --disabled-password \
|
18 |
+
--gecos "Default user" \
|
19 |
+
--uid ${NB_UID} \
|
20 |
+
${NB_USER}
|
21 |
+
|
22 |
+
USER ${NB_USER}
|
23 |
+
|
24 |
+
RUN python3 -m pip install pandas==1.3.1 attackcti==2.26.0 --user
|
25 |
+
|
26 |
+
COPY docs ${HOME}/docs
|
27 |
+
|
28 |
+
USER root
|
29 |
+
|
30 |
+
RUN chown ${NB_USER} /usr/local/share/jupyter/kernels/pyspark3/kernel.json \
|
31 |
+
&& chown -R ${NB_USER}:${NB_USER} ${HOME} ${JUPYTER_DIR}
|
32 |
+
|
33 |
+
WORKDIR ${HOME}
|
34 |
+
|
35 |
+
USER ${NB_USER}
|