Preparing switching to netfilter
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,12 +1,12 @@
|
||||
#Building main conteiner
|
||||
FROM python:slim-buster
|
||||
|
||||
RUN apt-get update && apt-get -y install build-essential libboost-system-dev libboost-thread-dev libpcre2-dev git
|
||||
RUN apt-get update && apt-get -y install build-essential libpcre2-dev python-dev git iptables libnetfilter-queue-dev
|
||||
|
||||
WORKDIR /tmp/
|
||||
RUN git clone --branch release https://github.com/jpcre2/jpcre2
|
||||
WORKDIR /tmp/jpcre2
|
||||
RUN ./configure; make; make install
|
||||
RUN git clone https://github.com/gpfei/python-pcre2.git
|
||||
WORKDIR /tmp/python-pcre2/
|
||||
RUN python3 setup.py install
|
||||
WORKDIR /
|
||||
|
||||
RUN mkdir /execute
|
||||
@@ -15,16 +15,9 @@ WORKDIR /execute
|
||||
ADD ./backend/requirements.txt /execute/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /execute/requirements.txt
|
||||
|
||||
ARG GCC_PARAMS
|
||||
RUN mkdir proxy
|
||||
ADD ./backend/proxy/proxy.cpp /execute/proxy/proxy.cpp
|
||||
RUN c++ -O3 -march=native $GCC_PARAMS -o proxy/proxy proxy/proxy.cpp -pthread -lboost_system -lboost_thread -lpcre2-8
|
||||
|
||||
COPY ./backend/ /execute/
|
||||
COPY ./frontend/build/ ./frontend/
|
||||
|
||||
RUN chmod ug+x /execute/proxy/proxy
|
||||
|
||||
ENTRYPOINT ["python3", "app.py", "DOCKER"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user