Fedir Zadniprovskyi 01-12
docs: build from source instructions
@ed0943ffbe8fe643ae8f210c740bdd5b23748b17
docs/installation.md
--- docs/installation.md
+++ docs/installation.md
@@ -65,6 +65,18 @@
       hf-hub-cache:
     ```
 
+??? note "Build from source"
+
+    ```bash
+    # NOTE: you need to install and enable [buildx](https://github.com/docker/buildx) for multi-platform builds
+
+    # Build image with CUDA support
+    docker compose --file compose.cuda.yaml build
+
+    # Build image without CUDA support
+    docker compose --file compose.cpu.yaml build
+    ```
+
 ## Docker
 
 === "CUDA"
@@ -105,6 +117,19 @@
       fedirz/faster-whisper-server:latest-cpu
     ```
 
+??? note "Build from source"
+
+    ```bash
+    docker build --tag faster-whisper-server .
+
+    # NOTE: you need to install and enable [buildx](https://github.com/docker/buildx) for multi-platform builds
+    # Build image for both amd64 and arm64
+    docker buildx build --tag faster-whisper-server --platform linux/amd64,linux/arm64 .
+
+    # Build image without CUDA support
+    docker build --tag faster-whisper-server --build-arg BASE_IMAGE=ubuntu:24.04 .
+    ```
+
 ## Kubernetes
 
 WARNING: it was written few months ago and may be outdated.
mkdocs.yml
--- mkdocs.yml
+++ mkdocs.yml
@@ -50,6 +50,7 @@
   - API: api.md
 markdown_extensions:
   - admonition
+  - pymdownx.details
   - pymdownx.superfences
   - pymdownx.tabbed:
       alternate_style: true
Add a comment
List