add devspace (#1173)

This commit is contained in:
acelinkio
2025-11-28 11:52:10 -08:00
committed by GitHub
parent e7d9002156
commit 2ef26e5d02
8 changed files with 159 additions and 0 deletions

25
scanner/devspace.yaml Normal file
View File

@@ -0,0 +1,25 @@
version: v2beta1
name: scanner
dev:
scanner:
imageSelector: ghcr.io/zoriya/kyoo_scanner
devImage: docker.io/astral/uv:python3.13-trixie
workingDir: /app
sync:
- path: .:/app
excludePaths:
- __pycache__
- .venv
startContainer: true
onUpload:
restartContainer: true
command:
- bash
- -c
- |
echo "Running uv sync..."
uv sync --locked || (echo 'uv sync failed' && exit 1)
echo "Starting FastAPI..."
/app/.venv/bin/fastapi run scanner --port 4389
ports:
- port: "4389"