Fix K8s service env collision on REUSE_SURFACE_PORT
Some checks failed
ci / validate-registry (push) Has been cancelled

This commit is contained in:
2026-06-15 10:08:54 +02:00
parent ce372f04e7
commit ae41395d3e
2 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ COPY schemas ./schemas
RUN pip install --no-cache-dir . RUN pip install --no-cache-dir .
ENV REUSE_SURFACE_HOST=0.0.0.0 ENV REUSE_SURFACE_LISTEN_HOST=0.0.0.0
ENV REUSE_SURFACE_PORT=8000 ENV REUSE_SURFACE_LISTEN_PORT=8000
ENV REUSE_SURFACE_DB=/data/reuse.db ENV REUSE_SURFACE_DB=/data/reuse.db
ENV REUSE_SURFACE_CACHE_DIR=/data/cache ENV REUSE_SURFACE_CACHE_DIR=/data/cache

View File

@@ -138,6 +138,6 @@ def create_app() -> FastAPI:
def main() -> None: def main() -> None:
import uvicorn import uvicorn
host = os.environ.get("REUSE_SURFACE_HOST", "0.0.0.0") host = os.environ.get("REUSE_SURFACE_LISTEN_HOST", "0.0.0.0")
port = int(os.environ.get("REUSE_SURFACE_PORT", "8000")) port = int(os.environ.get("REUSE_SURFACE_LISTEN_PORT", "8000"))
uvicorn.run(create_app(), host=host, port=port, reload=False) uvicorn.run(create_app(), host=host, port=port, reload=False)