Files
firegex-traffic-viewer/Dockerfile

39 lines
1.4 KiB
Docker
Raw Normal View History

# Firegex Dockerfile UUID signature
# cf1795af-3284-4183-a888-81ad3590ad84
# Needed for start.py to detect the Dockerfile
2024-10-13 01:50:52 +02:00
FROM --platform=$BUILDPLATFORM oven/bun AS frontend
2022-08-03 13:44:30 +02:00
WORKDIR /app
ADD ./frontend/package.json .
2025-02-02 20:42:01 +01:00
ADD ./frontend/bun.lock .
RUN bun i
2022-08-03 13:44:30 +02:00
COPY ./frontend/ .
RUN bun run build
2022-08-03 13:44:30 +02:00
2022-06-12 20:02:05 +02:00
#Building main conteiner
2025-02-11 19:11:30 +01:00
FROM --platform=$TARGETARCH registry.fedoraproject.org/fedora:latest
RUN dnf -y update && dnf install -y python3.13-devel @development-tools gcc-c++ \
libnetfilter_queue-devel libnfnetlink-devel libmnl-devel libcap-ng-utils nftables \
vectorscan-devel libtins-devel python3-nftables libpcap-devel boost-devel uv
2022-07-19 17:56:54 +02:00
RUN mkdir -p /execute/modules
2022-06-11 21:57:50 +02:00
WORKDIR /execute
2022-07-22 01:12:54 +02:00
ADD ./backend/requirements.txt /execute/requirements.txt
RUN uv pip install --no-cache --system -r /execute/requirements.txt
COPY ./proxy-client /execute/proxy-client
RUN uv pip install --no-cache --system ./proxy-client
2022-07-22 00:34:57 +02:00
COPY ./backend/binsrc /execute/binsrc
RUN g++ binsrc/nfregex.cpp -o modules/cppregex -std=c++23 -O3 -lnetfilter_queue -pthread -lnfnetlink $(pkg-config --cflags --libs libtins libhs libmnl)
RUN g++ binsrc/nfproxy.cpp -o modules/cpproxy -std=c++23 -O3 -lnetfilter_queue -lpython3.13 -pthread -lnfnetlink $(pkg-config --cflags --libs libtins libmnl python3)
2022-07-17 10:36:14 +02:00
2022-06-28 16:02:52 +02:00
COPY ./backend/ /execute/
2023-06-05 00:55:38 +02:00
COPY --from=frontend /app/dist/ ./frontend/
CMD ["/bin/sh", "/execute/docker-entrypoint.sh"]
2022-06-12 20:02:05 +02:00