You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just got a small Dockerfile and I got wome warning about flag I shouldn't use, and in fact I don't
What I Did
terrascan init
terrascan scan
Violation Details -
Description : Ensure platform flag with FROM command is not used for Docker file
File : Dockerfile
Line : 3
Severity : MEDIUM
-----------------------------------------------------------------------
Description : Ensure platform flag with FROM command is not used for Docker file
File : Dockerfile
Line : 11
Severity : MEDIUM
-----------------------------------------------------------------------
Description : Ensure apt is not used with RUN command for Docker file
File : Dockerfile
Line : 13
Severity : MEDIUM
-----------------------------------------------------------------------
Source Dockerfile
########################################
FROM base_ubuntu AS validate_gpg
COPY .pipeline /pipeline
RUN gpg --import /pipeline/hashicorp.gpg
RUN gpg --import /pipeline/tfsec.gpg
########################################
FROM validate_gpg AS validate_python
RUN apt install -y python3-dev python3-pip
RUN pip3 --no-cache-dir install-r /pipeline/requirements.txt
The text was updated successfully, but these errors were encountered:
Description
I just got a small Dockerfile and I got wome warning about flag I shouldn't use, and in fact I don't
What I Did
Source Dockerfile
The text was updated successfully, but these errors were encountered: