Complete dockerfile toolkit with generation and validation capabilities
94
94%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
You are given the following Dockerfile for a payment processing service:
FROM node:18
WORKDIR /app
ENV NODE_ENV=production
ENV API_KEY=sk_live_abcdef1234567890
ENV DATABASE_URL=postgres://admin:P@ssw0rd!@db.internal:5432/payments
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 3000
EXPOSE 22
CMD ["node", "server.js"]Perform Stage 2 (Checkov security scan) analysis on this Dockerfile.
Identify all Checkov (CKV_DOCKER_*) security violations. For each violation state:
Specifically address:
For the hardcoded secrets, describe the correct alternative using BuildKit secret mounts.
Categorise all findings as Critical, High, Medium, or Low severity.