Files
firegex-traffic-viewer/Dockerfile

38 lines
1.1 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
FROM --platform=$TARGETARCH debian:trixie-slim AS base
RUN apt-get update -qq && apt-get upgrade -qq && \
apt-get install -qq python3-pip build-essential \
2025-02-02 20:42:01 +01:00
libnetfilter-queue-dev libnfnetlink-dev libmnl-dev libcap2-bin\
nftables libvectorscan-dev libtins-dev python3-nftables
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 pip3 install --no-cache-dir --break-system-packages -r /execute/requirements.txt --no-warn-script-location
2022-07-22 00:34:57 +02:00
COPY ./backend/binsrc /execute/binsrc
RUN g++ binsrc/nfqueue.cpp -o modules/cppqueue -O3 -lnetfilter_queue -pthread -lnfnetlink $(pkg-config --cflags --libs libtins libhs libmnl)
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