Remove legacy build args

This commit is contained in:
Codex
2026-06-03 23:44:24 +08:00
parent 312c1860e8
commit 39699f6f5d
3 changed files with 3 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ It satisfies the runtime contract from the parent README:
- Root-level `Dockerfile`
- Listens on port `8080`
- Exposes `GET /health`
- Reads `TASK_TYPE`, `GPU_TYPE`, `FRAMEWORK`, and `EXTERNAL_SERVICE_TOKEN`
- Reads `EXTERNAL_SERVICE_TOKEN`
- Handles `SIGTERM` for graceful shutdown
## Local Run
@@ -21,11 +21,7 @@ curl http://localhost:8080/
## Build Locally
```bash
docker build \
--build-arg TASK_TYPE=validation \
--build-arg GPU_TYPE=amd64 \
--build-arg FRAMEWORK=pytorch \
-t strategy-demo:v1.0.0 .
docker build -t strategy-demo:v1.0.0 .
docker run --rm -p 8080:8080 strategy-demo:v1.0.0
```
@@ -38,9 +34,6 @@ Push this directory to Gitea and keep the `v1.0.0` tag. Then create a strategy w
{
"name": "strategy-demo",
"repo_url": "https://<your-gitea-host>/<user>/strategy-demo",
"tag": "v1.0.0",
"task_type": "validation",
"gpu_type": "amd64",
"framework": "pytorch"
"tag": "v1.0.0"
}
```