diff --git a/.dockerignore b/.dockerignore index a089e29..94d5b84 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,11 @@ -**/.git \ No newline at end of file +**/.git +.dockerignore +.gitignore +YAML-editor/public/ +YAML-editor/src/ +YAML-editor/node_modules/ +YAML-editor/package-lock.json +YAML-editor/package.json +YAML-editor/vue.config.js +YAML-editor/yarn.lock +YAML-editor/.eslintrc.json \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c6560e --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# DeTT&CT files +cache/ +output/ + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# Misc +.DS_Store +.vscode \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8e64377..f10ccfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.8-alpine -LABEL version="1.2.7" +LABEL version="1.3" # update repository and install Linux packages RUN apk update && \ @@ -17,3 +17,7 @@ RUN pip install --no-cache-dir -r requirements.txt RUN mkdir -p input # within this directory, the output files from DeTT&CT are written. Such as ATT&CK Navigator layer files. RUN mkdir -p output + +# set an environment variable for the YAML editor and expose port 8080 +ENV DeTTECT_DOCKER_CONTAINER 1 +EXPOSE 8080/tcp