Fedir Zadniprovskyi commited on
Commit
1012724
1 Parent(s): 7cd80cc

fix: dockerfile command not using app factory

Browse files
Files changed (2) hide show
  1. Dockerfile.cpu +1 -1
  2. Dockerfile.cuda +1 -1
Dockerfile.cpu CHANGED
@@ -21,4 +21,4 @@ ENV WHISPER__MODEL=Systran/faster-whisper-small
21
  ENV WHISPER__INFERENCE_DEVICE=cpu
22
  ENV UVICORN_HOST=0.0.0.0
23
  ENV UVICORN_PORT=8000
24
- CMD ["uv", "run", "uvicorn", "faster_whisper_server.main:app"]
 
21
  ENV WHISPER__INFERENCE_DEVICE=cpu
22
  ENV UVICORN_HOST=0.0.0.0
23
  ENV UVICORN_PORT=8000
24
+ CMD ["uv", "run", "uvicorn", "--factory", "faster_whisper_server.main:create_app"]
Dockerfile.cuda CHANGED
@@ -21,4 +21,4 @@ ENV WHISPER__MODEL=Systran/faster-whisper-large-v3
21
  ENV WHISPER__INFERENCE_DEVICE=auto
22
  ENV UVICORN_HOST=0.0.0.0
23
  ENV UVICORN_PORT=8000
24
- CMD ["uv", "run", "uvicorn", "faster_whisper_server.main:app"]
 
21
  ENV WHISPER__INFERENCE_DEVICE=auto
22
  ENV UVICORN_HOST=0.0.0.0
23
  ENV UVICORN_PORT=8000
24
+ CMD ["uv", "run", "uvicorn", "--factory", "faster_whisper_server.main:create_app"]