Files
firegex-traffic-viewer/Dockerfile

32 lines
1000 B
Docker
Raw Normal View History

2022-06-12 20:02:05 +02:00
#Building main conteiner
2022-07-19 17:56:54 +02:00
FROM python:alpine
2022-06-11 21:57:50 +02:00
2022-07-19 17:56:54 +02:00
RUN apk update
RUN apk add g++ git pcre2-dev libnetfilter_queue-dev libpcap-dev libcrypto1.1 libnfnetlink-dev libmnl-dev make cmake nftables
2022-07-01 02:29:28 +02:00
2022-07-17 10:36:14 +02:00
WORKDIR /tmp/
2022-07-19 17:56:54 +02:00
RUN git clone --single-branch --branch release https://github.com/jpcre2/jpcre2
RUN git clone --single-branch https://github.com/mfontanini/libtins.git
2022-07-17 10:36:14 +02:00
WORKDIR /tmp/jpcre2
RUN ./configure; make; make install
2022-07-19 17:56:54 +02:00
WORKDIR /tmp/libtins
RUN mkdir build; cd build; cmake ../ -DLIBTINS_ENABLE_CXX11=1; make; make install
2022-07-17 10:36:14 +02:00
RUN mkdir -p /execute/modules
2022-06-11 21:57:50 +02:00
WORKDIR /execute
2022-07-17 10:36:14 +02:00
COPY ./backend/nfqueue /execute/nfqueue
2022-07-17 17:02:27 +02:00
RUN g++ nfqueue/nfqueue.cpp -o modules/cppqueue -std=c++20 -O3 -march=native -lnetfilter_queue -pthread -lpcre2-8 -ltins -lmnl -lnfnetlink
2022-07-17 10:36:14 +02:00
2022-06-28 16:02:52 +02:00
ADD ./backend/requirements.txt /execute/requirements.txt
2022-07-19 17:56:54 +02:00
RUN pip3 install --no-cache-dir -r /execute/requirements.txt
2022-06-26 12:15:17 +02:00
2022-06-28 16:02:52 +02:00
COPY ./backend/ /execute/
2022-06-21 10:37:02 +02:00
COPY ./frontend/build/ ./frontend/
2022-06-12 20:02:05 +02:00
2022-06-28 13:26:06 +02:00
ENTRYPOINT ["python3", "app.py", "DOCKER"]
2022-06-12 20:02:05 +02:00