c/devops › command
0votes

Write a minimal production DockerfilePromptLow risk

submitted by u/client to c/devops · 0 copies

Small, cached, non-root images for any app.

Prompt · 3 variables
Write a production Dockerfile for a {{language}} app whose start command is {{start_command}}.

Requirements:
- Multi-stage build; final image based on a slim or distroless base.
- Dependency install layer cached separately from source.
- Runs as a non-root user.
- Only production dependencies in the final image.
- HEALTHCHECK if the app exposes HTTP on {{port}}.
- A matching .dockerignore.

Explain the expected final image size and how to verify it.
0 commentsreport
0 comments

Log in to join the discussion.