docker-containerization
Audited by Runlayer on Feb 25, 2026
Malicious tool definition detected
Tool: assets/Dockerfile.production Description: # Multi-stage Dockerfile for Next.js Production # Optimized for minimal image size and security # Stage 1: Dependencies FROM node:18-alpine AS deps LABEL stage=deps # Install dependencies only when needed RUN apk add --no-cache libc6-compat WORKDIR /app # Copy package files COPY package.json package-lock.json* ./ # Install dependencies with clean install RUN npm ci --only=production && \ npm cache clean --force # Stage 2: Builder FROM node:18-alpin
Malicious tool definition detected
# Install all dependencies (including devDependencies) RUN npm install && \ npm cache clean --force # Copy application source COPY .
Tool passed security scan
Malicious tool definition detected
**Port already in use** - Find process: `lsof -i :3000` - Use different port: `-p 3001:3000` - Stop conflicting container ## Size Comparison ### Before Optimization ``` Repository Tag Size nextjs-app latest 1.2GB ``` ### After Optimization ``` Repository Tag Size nextjs-app latest 180MB ``` **Savings**: 85% reduction in image size ## Checklist Before deploying to production, ensure: - ✅ Using multi-stage builds - ✅ Running as non-root user - ✅ Using specific image tags (not latest) - ✅ .dockerig
Malicious tool definition detected
Tool: references/container-orchestration.md [1/2]
Tool: references/container-orchestration.md [2/2] Description: port: metrics interval: 30s ``` ### ELK Stack (Elasticsearch, Logstash, Kibana) ```yaml # docker-compose.yml services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:8.5.0 environment: - discovery.type=single-node ports: - "9200:9200" logstash: image: docker.elastic.co/logstash/logstash:8.5.0 volumes: - ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf kibana: image: docker.elastic.co/kibana/kibana:8.5.0
Malicious tool definition detected
Tool: SKILL.md [1/2] Description: --- name: docker-containerization description: This skill should be used when containerizing applications with Docker, creating Dockerfiles, docker-compose configurations, or deploying containers to various platforms. Ideal for Next.js, React, Node.js applications requiring containerization for development, production, or CI/CD pipelines.
Malicious tool definition detected
Tool: assets/Dockerfile.nginx Description: # Multi-stage Dockerfile for Next.js with Nginx # For static export deployment with Nginx reverse proxy # Stage 1: Build the Next.js application FROM node:18-alpine AS builder WORKDIR /app # Copy package files COPY package.json package-lock.json* ./ # Install dependencies RUN npm ci && npm cache clean --force # Copy application source COPY .
Malicious tool definition detected
Tool: assets/nginx.conf Description: server { listen 80; server_name localhost; # Gzip compression gzip on; gzip_vary on; gzip_min_length 1024; gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/json; # Security headers add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; add_header X-XSS-Protection "1; mode=block" always; # Root location - serve static files location / { root /usr/share/
Malicious tool definition detected
Tool: scripts/docker-build.sh Description: #!/bin/bash # Docker Build Script for Next.js Applications # Builds Docker images with various configurations set -e # Exit on error # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' NC='\033[0m' # No Color # Default values IMAGE_NAME="nextjs-app" TAG="latest" DOCKERFILE="Dockerfile.production" BUILD_ARGS="" NO_CACHE=false PLATFORM="" # Print usage usage() { echo -e "${BLUE}Usage:${NC} $0 [OPTIONS]" echo "" e
Malicious tool definition detected
docker images --format '{{.Repository}}:{{.Tag}}' | grep -q "^${IMAGE_NAME}:${TAG}$"; then echo -e "${RED}Error: Image not found: ${IMAGE_NAME}:${TAG}${NC}" echo -e "${YELLOW}Available images:${NC}" docker images | grep "$IMAGE_NAME" || echo "No images found for $IMAGE_NAME"
Malicious tool definition detected
Tool: scripts/docker-run.sh Description: #!/bin/bash # Docker Run Script for Next.js Applications # Runs Docker containers with various configurations set -e # Exit on error # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' BLUE='\033[0;34m' NC='\033[0m' # No Color # Default values IMAGE_NAME="nextjs-app" TAG="latest" CONTAINER_NAME="nextjs-container" HOST_PORT="3000" CONTAINER_PORT="3000" DETACHED=false ENV_FILE="" VOLUMES="" NETWORK="" RESTART_POLICY="" # Print usage
Tool passed security scan
Tool passed security scan
Passed Files (3)Click to expand
Tool passed security scan
Tool passed security scan
Tool passed security scan