Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Commit
·
9484083
1
Parent(s):
836a395
don't install opentelemetry deps in docker image
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
ARG BASE_IMAGE=nvidia/cuda:12.6.3-cudnn-runtime-ubuntu24.04
|
|
|
2 |
FROM ${BASE_IMAGE}
|
3 |
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server"
|
4 |
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files
|
@@ -20,9 +21,9 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|
20 |
uv sync --frozen --compile-bytecode --no-install-project
|
21 |
COPY --chown=ubuntu ./src ./pyproject.toml ./uv.lock ./
|
22 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
23 |
-
uv sync --frozen --compile-bytecode --extra ui
|
24 |
ENV WHISPER__MODEL=Systran/faster-whisper-large-v3
|
25 |
ENV UVICORN_HOST=0.0.0.0
|
26 |
ENV UVICORN_PORT=8000
|
27 |
EXPOSE 8000
|
28 |
-
CMD ["uv", "run", "
|
|
|
1 |
ARG BASE_IMAGE=nvidia/cuda:12.6.3-cudnn-runtime-ubuntu24.04
|
2 |
+
# hadolint ignore=DL3006
|
3 |
FROM ${BASE_IMAGE}
|
4 |
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server"
|
5 |
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files
|
|
|
21 |
uv sync --frozen --compile-bytecode --no-install-project
|
22 |
COPY --chown=ubuntu ./src ./pyproject.toml ./uv.lock ./
|
23 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
24 |
+
uv sync --frozen --compile-bytecode --extra ui
|
25 |
ENV WHISPER__MODEL=Systran/faster-whisper-large-v3
|
26 |
ENV UVICORN_HOST=0.0.0.0
|
27 |
ENV UVICORN_PORT=8000
|
28 |
EXPOSE 8000
|
29 |
+
CMD ["uv", "run", "uvicorn", "--factory", "faster_whisper_server.main:create_app"]
|