2022-06-12 20:02:05 +02:00
|
|
|
#Building main conteiner
|
2022-06-12 22:28:16 +02:00
|
|
|
FROM python:slim-buster
|
2022-06-11 21:57:50 +02:00
|
|
|
|
2022-07-10 23:30:53 +02:00
|
|
|
RUN apt-get update && apt-get -y install build-essential libpcre3-dev git iptables libnetfilter-queue1
|
|
|
|
|
RUN git clone https://gitlab.com/guerrera.nicola/pypacker && cd pypacker && pip3 install .
|
2022-07-01 02:29:28 +02:00
|
|
|
|
2022-07-10 23:30:53 +02:00
|
|
|
WORKDIR /
|
2022-06-11 21:57:50 +02:00
|
|
|
RUN mkdir /execute
|
|
|
|
|
WORKDIR /execute
|
|
|
|
|
|
2022-06-28 16:02:52 +02:00
|
|
|
ADD ./backend/requirements.txt /execute/requirements.txt
|
2022-06-28 13:26:06 +02:00
|
|
|
RUN pip install --no-cache-dir -r /execute/requirements.txt
|
2022-06-26 12:15:17 +02:00
|
|
|
|
2022-06-28 16:02:52 +02:00
|
|
|
COPY ./backend/ /execute/
|
2022-06-21 10:37:02 +02:00
|
|
|
COPY ./frontend/build/ ./frontend/
|
2022-06-12 20:02:05 +02:00
|
|
|
|
2022-06-28 13:26:06 +02:00
|
|
|
ENTRYPOINT ["python3", "app.py", "DOCKER"]
|
2022-06-12 20:02:05 +02:00
|
|
|
|
|
|
|
|
|