

docs: build from source instructions
@ed0943ffbe8fe643ae8f210c740bdd5b23748b17
--- docs/installation.md
+++ docs/installation.md
... | ... | @@ -65,6 +65,18 @@ |
65 | 65 |
hf-hub-cache: |
66 | 66 |
``` |
67 | 67 |
|
68 |
+??? note "Build from source" |
|
69 |
+ |
|
70 |
+ ```bash |
|
71 |
+ # NOTE: you need to install and enable [buildx](https://github.com/docker/buildx) for multi-platform builds |
|
72 |
+ |
|
73 |
+ # Build image with CUDA support |
|
74 |
+ docker compose --file compose.cuda.yaml build |
|
75 |
+ |
|
76 |
+ # Build image without CUDA support |
|
77 |
+ docker compose --file compose.cpu.yaml build |
|
78 |
+ ``` |
|
79 |
+ |
|
68 | 80 |
## Docker |
69 | 81 |
|
70 | 82 |
=== "CUDA" |
... | ... | @@ -105,6 +117,19 @@ |
105 | 117 |
fedirz/faster-whisper-server:latest-cpu |
106 | 118 |
``` |
107 | 119 |
|
120 |
+??? note "Build from source" |
|
121 |
+ |
|
122 |
+ ```bash |
|
123 |
+ docker build --tag faster-whisper-server . |
|
124 |
+ |
|
125 |
+ # NOTE: you need to install and enable [buildx](https://github.com/docker/buildx) for multi-platform builds |
|
126 |
+ # Build image for both amd64 and arm64 |
|
127 |
+ docker buildx build --tag faster-whisper-server --platform linux/amd64,linux/arm64 . |
|
128 |
+ |
|
129 |
+ # Build image without CUDA support |
|
130 |
+ docker build --tag faster-whisper-server --build-arg BASE_IMAGE=ubuntu:24.04 . |
|
131 |
+ ``` |
|
132 |
+ |
|
108 | 133 |
## Kubernetes |
109 | 134 |
|
110 | 135 |
WARNING: it was written few months ago and may be outdated. |
--- mkdocs.yml
+++ mkdocs.yml
... | ... | @@ -50,6 +50,7 @@ |
50 | 50 |
- API: api.md |
51 | 51 |
markdown_extensions: |
52 | 52 |
- admonition |
53 |
+ - pymdownx.details |
|
53 | 54 |
- pymdownx.superfences |
54 | 55 |
- pymdownx.tabbed: |
55 | 56 |
alternate_style: true |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?