diff --git a/Dockerfile b/Dockerfile index 674c7b9723..096f4e29ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM python:3.12-alpine LABEL maintainer="https://github.com/prowler-cloud/prowler" -# Update system dependencies +# Update system dependencies and install essential tools #hadolint ignore=DL3018 -RUN apk --no-cache upgrade && apk --no-cache add curl +RUN apk --no-cache upgrade && apk --no-cache add curl git # Create nonroot user RUN mkdir -p /home/prowler && \ @@ -13,18 +13,17 @@ RUN mkdir -p /home/prowler && \ chown -R prowler:prowler /home/prowler USER prowler -# Copy necessary files +# Copy necessary files WORKDIR /home/prowler COPY prowler/ /home/prowler/prowler/ COPY dashboard/ /home/prowler/dashboard/ COPY pyproject.toml /home/prowler COPY README.md /home/prowler -# Install dependencies +# Install Python dependencies ENV HOME='/home/prowler' ENV PATH="$HOME/.local/bin:$PATH" -#hadolint ignore=DL3013 -RUN pip install --no-cache-dir --upgrade pip && \ +RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ pip install --no-cache-dir . # Remove deprecated dash dependencies