michaelfeil / michaelfeil/infinity

Set default `CMD` to `v2` in Dockerfiles if no command is set

Open
#510 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.9k
Forks
206
PR merge metrics
No merged PRs in 30d

Description

### Feature request

Add a `CMD ["v2"]` line to `Dockerfile`s to provide a default command for serving with Docker.

### Motivation

Now that the `v2` CLI is the recommended and documented way to use `infinity`, and it fully supports configuration via environment variables, defaulting the `CMD` to `v2` can allow starting the container with no arguments but environment variables.

### Your contribution

I can submit a PR if agreements can be reached.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the repository's Dockerfiles and checking which ones already define a CMD. Confirm how the v2 CLI is invoked and test starting the relevant image with environment variables but no command-line arguments. Done means Dockerfiles without an existing command provide the requested default while existing commands remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
cli, devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.