๐ณDocker
This page contains docker SAST rules including Vulnerability, Bug, Code Smell, Security Hotspot
Last updated
// Non-compliant Solution
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y \
unzip \
wget \
curl \
git \
zip// Non-compliant Solution
FROM alpine:3.12
RUN apk add unzip wget curl git zip// Compliant Solution
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y \
curl \
git \
unzip \
wget \
zip// Compliant Solution
FROM alpine:3.12
RUN apk add curl git unzip wget zip// Non-compliant solution
FROM example
# Sensitive
ENV APP_DEBUG=true
# Sensitive
ENV ENV=development
CMD /run.sh
// Compliant Solution
FROM example
ENV APP_DEBUG=false
ENV ENV=production
CMD /run.sh