Demo mode, read-only. Request a demo →

Readiness report · Sample app (fictional)

GreenEdge Lawn Quotes

Drafts of the files this app needs to run as a container on AWS, written for its stack (Python / Flask). 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/docker/library/python:3.12-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1

RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn==23.0.0

RUN useradd --uid 10001 --no-create-home app && chown app:app /app
COPY --chown=app:app . .
USER app

EXPOSE 8080
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "2", "app:app"]

.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.

# The current code reads these three variables.
# AWS_SECRET_ACCESS_KEY is required to use the current backup function.
# Copying this file does not load it automatically; supply values through your runtime.

# setting, optional
AWS_REGION=us-east-1
# secret, required
AWS_SECRET_ACCESS_KEY=
# setting, optional
BACKUP_BUCKET=greenedge-quote-backups

# Before AWS launch, remove the hardcoded access key and explicit credentials
# from the S3 client, and grant S3 access through the container's AWS task role.
# With that code change, AWS_SECRET_ACCESS_KEY is no longer needed on AWS.

.dockerignore AI-generated

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

.env
.env.*
!.env.example
.git
.gitignore
node_modules/
__pycache__/
*.py[cod]
.venv/
venv/
.pytest_cache/
*.log
logs/
.DS_Store
*.db
*.sqlite
*.sqlite3

health route (Flask) AI-generated

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

# Add after app = Flask(__name__), before the app.run block.
@app.get("/health")
def health():
    return {"status": "ok"}, 200