Container image

A step of the Cloud application tree on Gradus, in the Environment setup area: First commit to first deploy.

Write a multi-stage Dockerfile and .dockerignore so the service builds into a small, reproducible image, and build it in CI.

Usually comes after: Continuous integration.

Leads to: Choose where to run.

Prompt for your AI assistant

Write a multi-stage Dockerfile for this project that produces a minimal production image, plus a .dockerignore. Verify the image builds and runs locally, then add an image build to the CI workflow.

This is https://gradus.kazet.blog/tree/cloud-application/step/container-image as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.