docker-expert

Optimize Dockerfile builds and harden container security for production deployments.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/marablemarcel/Living-Lytics --skill docker-expert-marablemarcel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-expert
Source: https://github.com/marablemarcel/Living-Lytics/tree/main/living-lytics/.agent/skills/docker-expert
Command: npx skills add https://github.com/marablemarcel/Living-Lytics --skill docker-expert-marablemarcel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides expert guidance for optimizing Docker container builds, securing containers, and orchestrating production deployment patterns to improve performance, reduce image size, and strengthen security postures.

Core Features & Use Cases

  • Multi-stage build optimization: Minimize final image size while preserving build flexibility.
  • Security hardening: Non-root users, minimal base images, secrets handling, and runtime constraints.
  • Compose & orchestration guidance: Service dependencies, networks, health checks, and deployment strategies for Docker Compose.

Quick Start

Start by auditing your Dockerfile and docker-compose.yml to identify optimization opportunities and security gaps.

Frequently Asked Questions about docker-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Docker image size using multi-stage builds?

Optimize Docker image size by applying multi-stage builds to separate the build environment from the minimal runtime image, reducing the final deployed footprint while preserving build flexibility.

What is the best way to harden Docker container security for production?

Harden Docker container security by configuring non-root users, utilizing minimal base images, implementing secrets handling, and applying runtime resource constraints for production deployments.

How do I configure Docker Compose health checks and service dependencies?

Configure Docker Compose orchestration by defining service dependencies, networks, and health checks to manage deployment strategies and ensure robust container startup sequences.

Does my Dockerfile need a non-root user setup for production deployment?

Yes, production deployments require a non-root user setup alongside minimal runtime images and build context hygiene to meet standard security and resource control requirements.

Why is my Docker build context causing slow performance?

Slow Docker build performance often stems from poor build context hygiene; optimizing context inclusion and applying multi-stage builds minimizes transfer size and improves pipeline speed.