From c632055517ffbb7061e1b26dcb16182fa5a40ca1 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Wed, 6 Jul 2022 07:54:37 +0200 Subject: [PATCH] fix(dockerfile): Python path (#1250) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e697fd6422..9b86965d54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,8 @@ USER ${USERNAME} RUN pip3 install --upgrade pip && \ pip3 install --no-cache-dir boto3 detect-secrets==1.0.3 && \ pip3 cache purge +# Set Python PATH +ENV PATH="/home/${USERNAME}/.local/bin:${PATH}" USER 0 @@ -50,7 +52,7 @@ RUN rm /usr/bin/python && \ ln -s /usr/bin/python3 /usr/bin/python # Set working directory -WORKDIR /prowler +WORKDIR /home/${USERNAME} # Copy all files COPY . ./