Intelligence Engine

Last updated: April 12, 2026

ShipDock’s intelligence engine automatically generates Dockerfiles via static AST analysis if you don't provide one. You never have to write DevOps code again.

Detected: next.js (standalone)
FROM node:18-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:18-alpine AS runner
COPY --from=builder /app/.next/standalone ./
CMD ["node", "server.js"]

Next.js Standalone

When we detect a next.config.js file, we build a multi-stage Node/Alpine image caching node_modules separately and only booting the optimized standalone runner.

Python FastAPI

We detect Poetry, Pipenv, or requirements.txt automatically. We install the dependencies and wrap your ASGI application in Gunicorn with Uvicorn worker threads to maximize CPU concurrency.

Detected: python (fastapi)
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "main:app", "\\
", "--workers", "4", "\\
", "--worker-class", "uvicorn.workers.UvicornWorker", "\\
", "--bind", "0.0.0.0:80"]

Overriding the Engine

Simply place a file named Dockerfile in the root of your project link. Our engine detects this immediately and defaults completely to your manual build specification.