Skip to content

[FEATURE] Multi-Stage Alpine Docker Image #90

Description

@ditahkk

Feature Description

Build minimal Docker image using Alpine Linux base with multi-stage build pattern for optimal size and security.

Use Case

AWS Marketplace customers need secure, lightweight container images with fast download and startup times for cost-effective execution.

Proposed Solution

  • Alpine Linux base image (~5MB)
  • Multi-stage build: Build Stage (full dev environment) and Runtime Stage (minimal dependencies)
  • Non-root user execution (UID 1000)
  • Read-only root filesystem capability
  • Target ~20MB total image size

Alternatives Considered

  • Distroless base
  • Ubuntu base
  • Single stage build

Additional Context

  • Smaller images for Marketplace distribution
  • No build tools in production image
  • Cached layer optimization

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Story.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions