Update Dockerfile base image and installation commands

The base image in the Dockerfile has been updated to python:3.11-slim-bookworm from alpine:3 for a more tailored environment. The initial installation commands using apk have been replaced with apt commands. The apk commands were removed as they are not compatible with the new base image. This fixes compt issues with ujson
This commit is contained in:
L1ghtn1ng 2024-03-17 23:15:34 +00:00
parent 03e9bb34ef
commit 0183b674e0

View file

@ -1,7 +1,7 @@
FROM alpine:3
FROM python:3.11-slim-bookworm
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 apt update && apt install -y pipx git; apt clean; apt autoremove -y
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"]