mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
fix(dockerfile): Python path (#1250)
This commit is contained in:
+3
-1
@@ -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 . ./
|
||||
|
||||
Reference in New Issue
Block a user