-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathDockerfile-dalton
More file actions
32 lines (24 loc) · 904 Bytes
/
Dockerfile-dalton
File metadata and controls
32 lines (24 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10.15
# wireshark needed for mergecap; statically compiled
# mergecap would be smaller but doing this for now
# hadolint ignore=DL3008
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
wireshark-common \
p7zip-full \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# for development; not needed by the app
#RUN apt-get install -y less nano net-tools
WORKDIR /opt/dalton
COPY pyproject.toml /opt/dalton
COPY app /opt/dalton/app
RUN pip install --no-cache-dir -e .
COPY run.py /opt/dalton/run.py
COPY dalton.conf /opt/dalton/dalton.conf
COPY rulesets /opt/dalton/rulesets
COPY engine-configs /opt/dalton/engine-configs
STOPSIGNAL SIGINT
EXPOSE 8080
# Note: if changing the next line, also look to change the command in docker-compose.yml
CMD ["flask", "--app", "app", "run", "--port=8080", "--host=0.0.0.0"]