From 8c6cd3042cc88aeb80b4a7eddbb463bf13d36ae7 Mon Sep 17 00:00:00 2001 From: L1ghtn1ng Date: Mon, 18 Dec 2023 16:34:06 +0000 Subject: [PATCH] Update Docker settings and shift to pipx for module installation Changed the installation process to use `pipx` instead of `pip3` in the Dockerfile. The path setting for API keys and proxies in `docker-compose.yml` were also updated. Additionally, the name of the default network was altered to better reflect its use. --- Dockerfile | 15 ++++++--------- docker-compose.yml | 5 +++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index d4956fa0..0385c9c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ FROM alpine:3 -LABEL maintainer="@jay_townsend1 & @NotoriousRebel1 (alpine @viardant)" -WORKDIR /app -COPY requirements.txt requirements.txt -COPY requirements requirements -RUN apk update && apk upgrade --available && apk add --no-cache musl-dev git libffi-dev gcc python3-dev py3-pip libxml2-dev libxslt-dev && python3 -m pip install --upgrade pip -RUN python3 --version && pip3 install --no-cache-dir -r requirements.txt -COPY . /app -RUN pip3 install --no-cache-dir . -ENTRYPOINT ["restfulHarvest", "-H", "0.0.0.0", "-p", "80"] +LABEL maintainer="@jay_townsend1 & @NotoriousRebel1" +RUN apk update && apk upgrade --available && apk add --no-cache musl-dev git libffi-dev gcc python3-dev pipx libxml2-dev libxslt-dev bash +RUN mkdir -p "~/.local/share/theHarvester/static/" +RUN pipx install git+https://github.com/laramies/theHarvester.git +RUN pipx ensurepath +ENTRYPOINT ["/root/.local/bin/restfulHarvest", "-H", "0.0.0.0", "-p", "80"] EXPOSE 80 diff --git a/docker-compose.yml b/docker-compose.yml index 46b9fdcd..d53a05e3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,13 +3,14 @@ services: theharvester.svc.local: container_name: theHarvester volumes: - - ./api-keys.yaml:/app/api-keys.yaml + - ./api-keys.yaml:/root/.theHarvester/api-keys.yaml - ./api-keys.yaml:/etc/theHarvester/api-keys.yaml - ./proxies.yaml:/etc/theHarvester/proxies.yaml + - ./proxies.yaml:/root/.theHarvester/proxies.yaml build: . ports: - "8080:80" networks: default: - name: app_custom_network + name: app_theHarvester_network