2020-02-10 06:42:16 +00:00
|
|
|
FROM python:3.8-alpine
|
2019-07-08 11:40:24 +00:00
|
|
|
|
2020-02-20 09:01:12 +00:00
|
|
|
LABEL version="1.3"
|
2019-07-08 11:40:24 +00:00
|
|
|
|
|
|
|
# update repository and install Linux packages
|
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade && \
|
2020-02-10 06:42:16 +00:00
|
|
|
apk add --no-cache bash libc-dev build-base
|
2019-07-08 11:40:24 +00:00
|
|
|
|
|
|
|
# clone the newest version of DeTT&CT and install requirements
|
|
|
|
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
|