Skip to main content
Deploying applications on Unkey is in public beta. To try it, select Projects in the dashboard sidebar and create a project. Deployed resources are free until August 1, 2026. We’re eager for feedback, so let us know what you think on Discord, X, or email support@unkey.com.
If you’re not comfortable writing a Dockerfile from scratch, hand the prompt below to a coding agent. It tells the agent to first inspect your repository and then produce a Dockerfile plus a .dockerignore that respect Unkey’s runtime constraints (reading PORT, handling SIGTERM, build secrets via mount).

How to use it

Open your repository in your coding agent of choice (Claude Code, Cursor, Windsurf, Codex, or similar), start a fresh conversation, and paste the prompt verbatim. The agent will ask clarifying questions if anything about your project is ambiguous (for example, which app in a monorepo you’re deploying) before writing any files. Once the files land in your repo, push to the branch connected to your Unkey project. Review the Dockerfile path and root directory settings in your app so the build picks the right context.

The prompt

What to check before deploying

After the agent finishes, skim the result for these specifics: The CMD instruction uses the exec form (JSON array, not a bare string), so your app receives SIGTERM directly when Unkey drains an instance. Any RUN step that needs a secret uses the --mount=type=secret,id=${UNKEY_SECRETS_ID},target=/run/secrets/.env pattern with ARG UNKEY_SECRETS_ID declared in the same stage, rather than ARG or ENV for the values themselves. The base image is pinned to a specific version and your final stage is slim enough that it doesn’t carry the whole build toolchain. If any of those are wrong, ask the agent to fix them directly. The prompt is short enough to tweak and re-run if your project has an unusual shape.

Builds

How Unkey turns your Dockerfile into a container image, including build-time secrets and caching.

App settings

Configure the Dockerfile path, root directory, port, and runtime options that pair with this Dockerfile.
Last modified on June 11, 2026