frontend fixes, dockerfile passed to bun, nftable python installed using apt

This commit is contained in:
Domingo Dirutigliano
2024-04-09 02:20:51 +02:00
parent fc03aae2c9
commit a79c321300
9 changed files with 41 additions and 4420 deletions

View File

@@ -1,11 +1,10 @@
FROM --platform=$BUILDPLATFORM node:18 AS frontend
RUN mkdir /app
FROM --platform=$BUILDPLATFORM oven/bun as frontend
WORKDIR /app
ADD ./frontend/package.json .
ADD ./frontend/package-lock.json .
RUN npm ci
ADD ./frontend/bun.lockb .
RUN bun install
COPY ./frontend/ .
RUN npm run build
RUN bun run build
#Building main conteiner
@@ -16,6 +15,7 @@ RUN apt-get install -qq git libpcre2-dev libnetfilter-queue-dev
RUN apt-get install -qq libssl-dev libnfnetlink-dev libmnl-dev libcap2-bin
RUN apt-get install -qq make cmake nftables libboost-all-dev autoconf
RUN apt-get install -qq automake cargo libffi-dev libvectorscan-dev libtins-dev
RUN apt-get install -qq python3-nftables
WORKDIR /tmp/
RUN git clone --single-branch --branch release https://github.com/jpcre2/jpcre2