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.
This commit is contained in:
L1ghtn1ng 2023-12-18 16:34:06 +00:00
parent 82bdd0fec3
commit 8c6cd3042c
2 changed files with 9 additions and 11 deletions

View file

@ -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

View file

@ -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