Demo mode, read-only. Request a demo →

Readiness report · Sample app (fictional)

Sweet Crumb Bakery

Drafts of the files this app needs to run as a container on AWS, written for its stack (Static website). The fix for each finding is on the Findings tab.

Dockerfile AI-generated

Packages the app as one container: an official slim base image with security updates applied, an unprivileged user, and the app listening on 0.0.0.0.

FROM --platform=linux/amd64 public.ecr.aws/nginx/nginx:stable-alpine

# Update OS packages and allow non-root nginx to bind port 80.
RUN apk upgrade --no-cache \
    && apk add --no-cache libcap \
    && setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx

# Keep runtime files in locations writable by the non-root user.
RUN printf '%s\n' \
    'worker_processes auto;' \
    'pid /tmp/nginx.pid;' \
    'error_log /dev/stderr warn;' \
    'events { worker_connections 1024; }' \
    'http {' \
    '  include /etc/nginx/mime.types;' \
    '  default_type application/octet-stream;' \
    '  access_log /dev/stdout;' \
    '  client_body_temp_path /tmp/client_temp;' \
    '  proxy_temp_path /tmp/proxy_temp;' \
    '  fastcgi_temp_path /tmp/fastcgi_temp;' \
    '  uwsgi_temp_path /tmp/uwsgi_temp;' \
    '  scgi_temp_path /tmp/scgi_temp;' \
    '  server {' \
    '    listen 0.0.0.0:80;' \
    '    server_name _;' \
    '    root /usr/share/nginx/html;' \
    '    index index.html;' \
    '    location = /health { default_type application/json; return 200 "{\"status\":\"ok\"}"; }' \
    '    location / { try_files $uri $uri/ =404; }' \
    '  }' \
    '}' > /etc/nginx/nginx.conf \
    && rm -rf /usr/share/nginx/html/*

COPY . /usr/share/nginx/html/
USER nginx
EXPOSE 80
ENTRYPOINT ["nginx"]
CMD ["-g", "daemon off;"]

.env.example AI-generated

Lists every setting the app reads, marked secret or setting, required or optional. Secrets go in AWS Secrets Manager, never in the code.

# This static website reads no environment variables.
# Creating a .env file will not change its HTML or JavaScript.
# The browser Maps key is written in index.html; restrict it in Google Cloud.
# Never put server-only secrets in website files.

.dockerignore AI-generated

Keeps secrets, Git history and generated folders out of the container image.

.env
.env.*
!.env.example
.git
.gitignore
node_modules/
__pycache__/
.venv/
*.log
logs/
.DS_Store
Dockerfile
.dockerignore
README*

health file (static site) AI-generated

A /health address that answers 200, so the load balancer can tell the app is alive.

# Included in the Dockerfile's nginx server block.
# Returns a basic web-server health response, not an order-service check.
location = /health {
    default_type application/json;
    return 200 '{"status":"ok"}';
}