Set Dockerfile path in service configuration. Multi-stage builds recommended. Ensure the final image runs as a long-lived process listening on the…