fix(dockerfile): Python path (#1250)

This commit is contained in:
Pepe Fagoaga
2022-07-06 07:54:37 +02:00
committed by GitHub
parent fd850790d5
commit c632055517
+3 -1
View File
@@ -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 . ./