• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
yjyoon / whisper_server_speaches star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
whisper_server_speachesDockerfile
Download as .zip file
File name
Commit message
Commit date
.github/workflows
feat: switch to ghcr.io
01-10
configuration
feat: add instrumentation
2024-12-17
docs
docs: add api page
01-12
examples
chore: update volume names and mount points
01-10
scripts
chore: misc changes
2024-10-03
src/speaches
fix: gradio app breaks on arm
01-10
tests
tests: proper `get_config` dependency override
01-03
.dockerignore
chore: update .dockerignore
2024-11-01
.envrc
init
2024-05-20
.gitattributes
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.7.2
2024-11-02
.gitignore
chore: update .gitignore
2024-07-03
.pre-commit-config.yaml
docs: init
01-08
Dockerfile
feat: switch to ghcr.io
01-10
LICENSE
init
2024-05-20
README.md
chore: update volume names and mount points
01-10
Taskfile.yaml
feat: reorganize docker files
2024-12-22
audio.wav
chore: update volume names and mount points
01-10
compose.cpu.yaml
chore: update volume names and mount points
01-10
compose.cuda-cdi.yaml
chore: update volume names and mount points
01-10
compose.cuda.yaml
chore: update volume names and mount points
01-10
compose.observability.yaml
chore(deps): update prom/prometheus docker tag to v2.55.1
01-03
compose.yaml
chore: misc changes
01-10
flake.lock
deps: update flake
2024-11-01
flake.nix
chore(deps): add loki and tempo package to flake
2024-12-17
mkdocs.yml
docs: add api page
01-12
pyproject.toml
docs: add api page
01-12
renovate.json
feat: renovate handle pre-commit
2024-11-01
uv.lock
docs: add api page
01-12
Fedir Zadniprovskyi 01-10 4271631 feat: switch to ghcr.io UNIX
Raw Open in browser Change history
ARG BASE_IMAGE=nvidia/cuda:12.6.3-cudnn-runtime-ubuntu24.04 # hadolint ignore=DL3006 FROM ${BASE_IMAGE} LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server" LABEL org.opencontainers.image.licenses="MIT" # `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files # hadolint ignore=DL3008 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ffmpeg python3.12 && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # "ubuntu" is the default user on ubuntu images with UID=1000. This user is used for two reasons: # 1. It's generally a good practice to run containers as non-root users. See https://www.docker.com/blog/understanding-the-docker-user-instruction/ # 2. Docker Spaces on HuggingFace don't support running containers as root. See https://huggingface.co/docs/hub/en/spaces-sdks-docker#permissions USER ubuntu ENV HOME=/home/ubuntu \ PATH=/home/ubuntu/.local/bin:$PATH WORKDIR $HOME/faster-whisper-server # https://docs.astral.sh/uv/guides/integration/docker/#installing-uv COPY --chown=ubuntu --from=ghcr.io/astral-sh/uv:0.5.14 /uv /bin/uv # https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers # https://docs.astral.sh/uv/guides/integration/docker/#compiling-bytecode # TODO: figure out if `/home/ubuntu/.cache/uv` should be used instead of `/root/.cache/uv` RUN --mount=type=cache,target=/root/.cache/uv \ --mount=type=bind,source=uv.lock,target=uv.lock \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ uv sync --frozen --compile-bytecode --no-install-project COPY --chown=ubuntu ./src ./pyproject.toml ./uv.lock ./ RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --frozen --compile-bytecode --extra ui # Creating a directory for the cache to avoid the following error: # PermissionError: [Errno 13] Permission denied: '/home/ubuntu/.cache/huggingface/hub' # This error occurs because the volume is mounted as root and the `ubuntu` user doesn't have permission to write to it. Pre-creating the directory solves this issue. RUN mkdir -p $HOME/.cache/huggingface/hub ENV WHISPER__MODEL=Systran/faster-whisper-large-v3 ENV UVICORN_HOST=0.0.0.0 ENV UVICORN_PORT=8000 ENV PATH="$HOME/faster-whisper-server/.venv/bin:$PATH" # https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hfhubenablehftransfer # NOTE: I've disabled this because it doesn't inside of Docker container. I couldn't pinpoint the exact reason. This doesn't happen when running the server locally. # RuntimeError: An error occurred while downloading using `hf_transfer`. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling. ENV HF_HUB_ENABLE_HF_TRANSFER=0 # https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#donottrack # https://www.reddit.com/r/StableDiffusion/comments/1f6asvd/gradio_sends_ip_address_telemetry_by_default/ ENV DO_NOT_TRACK=1 EXPOSE 8000 CMD ["uvicorn", "--factory", "faster_whisper_server.main:create_app"]

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up