winstxnhdw
commited on
Commit
•
333b5a6
1
Parent(s):
06fb07c
perf: use multi-stage docker build
Browse files- Dockerfile +1 -3
- README.md +1 -0
Dockerfile
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
FROM ghcr.io/winstxnhdw/nllb-api:main
|
2 |
|
3 |
ENV SERVER_PORT 7860
|
4 |
-
ENV HUGGINGFACE_HUB_CACHE /cache
|
5 |
|
6 |
-
|
7 |
-
chmod 777 /cache
|
|
|
1 |
FROM ghcr.io/winstxnhdw/nllb-api:main
|
2 |
|
3 |
ENV SERVER_PORT 7860
|
|
|
4 |
|
5 |
+
EXPOSE $SERVER_PORT
|
|
README.md
CHANGED
@@ -8,6 +8,7 @@ python_version: 3.11.4
|
|
8 |
models: [winstxnhdw/nllb-200-distilled-1.3B-ct2-int8]
|
9 |
tags: [translation, translator, nllb, ctranslate2]
|
10 |
pinned: true
|
|
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
8 |
models: [winstxnhdw/nllb-200-distilled-1.3B-ct2-int8]
|
9 |
tags: [translation, translator, nllb, ctranslate2]
|
10 |
pinned: true
|
11 |
+
base_path: /docs
|
12 |
---
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|