원클릭으로
dockerfile-generator
Generates optimized Dockerfiles and Docker Compose configurations for any language or framework
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generates optimized Dockerfiles and Docker Compose configurations for any language or framework
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyzes project structure, module dependencies, imports, and entry points to generate architecture diagrams in Mermaid format
Analyzes ETL and data pipeline code for optimization opportunities across Python (Pandas, PySpark), Rust (polars, datafusion), SQL, and general pipeline descriptions
Validates environment variable configurations and config files (YAML, TOML, JSON, .env) for missing required variables, type mismatches, deprecated keys, naming convention violations, secret exposure risks, and invalid value ranges
Analyzes code for performance bottlenecks including N+1 queries, O(n^2) or worse algorithms, unnecessary allocations, sync I/O in async contexts, excessive cloning, missing caching opportunities, and large payload transfers. Supports Rust, Python, TypeScript, and Go.
Analyzes, improves, and restructures LLM prompts for clarity, efficiency, and reliability
Analyzes source code for common security vulnerabilities including SQL injection, XSS, command injection, hardcoded secrets, insecure deserialization, path traversal, and SSRF
| name | dockerfile-generator |
| description | Generates optimized Dockerfiles and Docker Compose configurations for any language or framework |
| version | 1.0.0 |
| author | go-on-team |
| tags | ["docker","container","dockerfile","docker-compose","devops","deployment"] |
| min_go_on_version | 1.0.0 |
Generates production-ready Dockerfiles and Docker Compose configurations following best practices for layer caching, multi-stage builds, security (non-root user, minimal base images), and architecture-specific optimization.
docker-compose.yml with linked services (database, cache, queue, reverse proxy) and environment variable documentation| Parameter | Type | Description |
|---|---|---|
language | string | Language: rust, python, typescript, go, java, node |
framework | string | Optional: web framework (e.g., actix-web, fastapi, express) |
port | integer | Application port (default: 8080) |
include_compose | boolean | Optional: also generate docker-compose.yml (default: false) |
compose_services | string[] | Optional: additional services for compose (postgres, redis, nginx, minio) |
target_arch | string | Optional: target architecture (amd64, arm64, default: platform-native) |
{
"language": "rust",
"framework": "actix-web",
"port": 8080,
"include_compose": true,
"compose_services": ["postgres", "redis"],
"target_arch": "amd64"
}
Example output (abbreviated):
# Stage 1: Build
FROM rust:1.85-slim-bookworm AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
# Cache dependencies
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release 2>/dev/null || true
RUN rm -rf src
# Build application
COPY . .
RUN touch src/main.rs
RUN cargo build --release
# Stage 2: Runtime
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
RUN groupadd -r app && useradd -r -g app app
WORKDIR /app
COPY --from=builder /app/target/release/my-app .
USER app
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
CMD ["./my-app"]
# docker-compose.yml
version: "3.9"
services:
app:
build: .
ports: ["8080:8080"]
environment:
DATABASE_URL: postgres://user:pass@postgres:5432/db
REDIS_URL: redis://redis:6379
depends_on: [postgres, redis]
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: myapp
POSTGRES_USER: user
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes: ["pgdata:/var/lib/postgresql/data"]
redis:
image: redis:7-alpine
volumes: { pgdata: }