2020-05-12 13:37:14 +00:00
|
|
|
FROM python:3.8-slim-buster
|
2019-07-08 11:40:24 +00:00
|
|
|
|
2020-10-30 20:16:51 +00:00
|
|
|
LABEL version="1.4.2"
|
2019-07-08 11:40:24 +00:00
|
|
|
|
2020-05-12 13:37:14 +00:00
|
|
|
# copy DeTT&CT and install the requirements
|
2019-07-08 11:40:24 +00:00
|
|
|
COPY . /opt/DeTTECT
|
|
|
|
WORKDIR /opt/DeTTECT
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
# create an input and output directory
|
|
|
|
# within this directory, you can put your data source, technique and group YAML administration files.
|
|
|
|
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
|
2020-02-20 09:01:12 +00:00
|
|
|
|
2020-03-04 09:45:00 +00:00
|
|
|
# set an environment variable for the DeTT&CT Editor and expose port 8080
|
2020-02-20 09:01:12 +00:00
|
|
|
ENV DeTTECT_DOCKER_CONTAINER 1
|
|
|
|
EXPOSE 8080/tcp
|