generated from coulomb/repo-seed
Fix K8s service env collision on REUSE_SURFACE_PORT
Some checks failed
ci / validate-registry (push) Has been cancelled
Some checks failed
ci / validate-registry (push) Has been cancelled
This commit is contained in:
@@ -8,8 +8,8 @@ COPY schemas ./schemas
|
||||
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
ENV REUSE_SURFACE_HOST=0.0.0.0
|
||||
ENV REUSE_SURFACE_PORT=8000
|
||||
ENV REUSE_SURFACE_LISTEN_HOST=0.0.0.0
|
||||
ENV REUSE_SURFACE_LISTEN_PORT=8000
|
||||
ENV REUSE_SURFACE_DB=/data/reuse.db
|
||||
ENV REUSE_SURFACE_CACHE_DIR=/data/cache
|
||||
|
||||
|
||||
@@ -138,6 +138,6 @@ def create_app() -> FastAPI:
|
||||
def main() -> None:
|
||||
import uvicorn
|
||||
|
||||
host = os.environ.get("REUSE_SURFACE_HOST", "0.0.0.0")
|
||||
port = int(os.environ.get("REUSE_SURFACE_PORT", "8000"))
|
||||
host = os.environ.get("REUSE_SURFACE_LISTEN_HOST", "0.0.0.0")
|
||||
port = int(os.environ.get("REUSE_SURFACE_LISTEN_PORT", "8000"))
|
||||
uvicorn.run(create_app(), host=host, port=port, reload=False)
|
||||
Reference in New Issue
Block a user