Docker image on ghcr-io
This commit is contained in:
committed by
DomySh
parent
cd3dd2627f
commit
850e408360
22
Dockerfile
22
Dockerfile
@@ -1,8 +1,22 @@
|
||||
FROM node:16-alpine AS frontend
|
||||
RUN apk add --update npm
|
||||
RUN npm install -g npm@latest
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
ADD ./frontend/package.json .
|
||||
ADD ./frontend/package-lock.json .
|
||||
RUN npm install
|
||||
COPY ./frontend/ .
|
||||
RUN npm run build
|
||||
|
||||
|
||||
#Building main conteiner
|
||||
FROM python:alpine
|
||||
FROM python:alpine AS base
|
||||
|
||||
RUN apk update
|
||||
RUN apk add g++ git pcre2-dev libnetfilter_queue-dev libpcap-dev libcrypto1.1 libnfnetlink-dev libmnl-dev make cmake nftables boost-dev libcap bash
|
||||
RUN apk add g++ git pcre2-dev libnetfilter_queue-dev libpcap-dev\
|
||||
libcrypto1.1 libnfnetlink-dev libmnl-dev make cmake nftables\
|
||||
boost-dev libcap autoconf automake bash rust cargo openssl-dev
|
||||
|
||||
WORKDIR /tmp/
|
||||
RUN git clone --single-branch --branch release https://github.com/jpcre2/jpcre2
|
||||
@@ -22,10 +36,8 @@ COPY ./backend/binsrc /execute/binsrc
|
||||
RUN g++ binsrc/nfqueue.cpp -o modules/cppqueue -O3 -lnetfilter_queue -pthread -lpcre2-8 -ltins -lmnl -lnfnetlink
|
||||
RUN g++ binsrc/proxy.cpp -o modules/proxy -O3 -pthread -lboost_system -lboost_thread -lpcre2-8
|
||||
|
||||
|
||||
COPY ./backend/ /execute/
|
||||
COPY ./frontend/build/ ./frontend/
|
||||
|
||||
COPY --from=frontend /app/build/ ./frontend/
|
||||
ENTRYPOINT ["/bin/sh", "/execute/docker-entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user