generated from Ostorlab/template_agent
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (26 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu:24.04 AS base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common git build-essential \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get remove -y python*
RUN apt-get -y install python3.11 python3.11-dev python3-pip wget zip wireguard iproute2
RUN git clone https://github.com/NetworkConfiguration/openresolv.git && \
cd openresolv && \
./configure && \
make && \
make install && \
cd .. && rm -rf openresolv
COPY requirement.txt /requirement.txt
RUN python3.11 -m pip install --upgrade setuptools
RUN python3.11 -m pip install -r /requirement.txt
RUN mkdir /nuclei
WORKDIR /nuclei
ARG NUCLEI_VERSION=3.3.9
RUN wget https://github.com/projectdiscovery/nuclei/releases/download/v${NUCLEI_VERSION}/nuclei_${NUCLEI_VERSION}_linux_amd64.zip && \
unzip nuclei_${NUCLEI_VERSION}_linux_amd64.zip
RUN mkdir -p /app/agent
ENV PYTHONPATH=/app
COPY agent /app/agent
COPY ostorlab.yaml /app/agent/ostorlab.yaml
WORKDIR /app
CMD ["python3.11", "/app/agent/agent_nuclei.py"]