mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-20 07:16:31 +08:00
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:
parent
82bdd0fec3
commit
8c6cd3042c
15
Dockerfile
15
Dockerfile
|
@ -1,11 +1,8 @@
|
||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
LABEL maintainer="@jay_townsend1 & @NotoriousRebel1 (alpine @viardant)"
|
LABEL maintainer="@jay_townsend1 & @NotoriousRebel1"
|
||||||
WORKDIR /app
|
RUN apk update && apk upgrade --available && apk add --no-cache musl-dev git libffi-dev gcc python3-dev pipx libxml2-dev libxslt-dev bash
|
||||||
COPY requirements.txt requirements.txt
|
RUN mkdir -p "~/.local/share/theHarvester/static/"
|
||||||
COPY requirements requirements
|
RUN pipx install git+https://github.com/laramies/theHarvester.git
|
||||||
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 pipx ensurepath
|
||||||
RUN python3 --version && pip3 install --no-cache-dir -r requirements.txt
|
ENTRYPOINT ["/root/.local/bin/restfulHarvest", "-H", "0.0.0.0", "-p", "80"]
|
||||||
COPY . /app
|
|
||||||
RUN pip3 install --no-cache-dir .
|
|
||||||
ENTRYPOINT ["restfulHarvest", "-H", "0.0.0.0", "-p", "80"]
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
@ -3,13 +3,14 @@ services:
|
||||||
theharvester.svc.local:
|
theharvester.svc.local:
|
||||||
container_name: theHarvester
|
container_name: theHarvester
|
||||||
volumes:
|
volumes:
|
||||||
- ./api-keys.yaml:/app/api-keys.yaml
|
- ./api-keys.yaml:/root/.theHarvester/api-keys.yaml
|
||||||
- ./api-keys.yaml:/etc/theHarvester/api-keys.yaml
|
- ./api-keys.yaml:/etc/theHarvester/api-keys.yaml
|
||||||
- ./proxies.yaml:/etc/theHarvester/proxies.yaml
|
- ./proxies.yaml:/etc/theHarvester/proxies.yaml
|
||||||
|
- ./proxies.yaml:/root/.theHarvester/proxies.yaml
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: app_custom_network
|
name: app_theHarvester_network
|
||||||
|
|
Loading…
Reference in a new issue