cool commited on
Commit
1ea9c29
·
verified ·
1 Parent(s): 1f589f1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -2,18 +2,19 @@ FROM libretranslate/libretranslate
2
 
3
  USER root
4
 
5
- # Install tools to download and extract model
6
  RUN apt-get update && apt-get install -y curl unzip
7
 
8
  # Download and install the Kabyle model
9
  RUN curl -L -o /app/en_kab_comp.argosmodel \
10
- https://huggingface.co/axxam/LibreTranslate_Kabyle/resolve/main/en_kab_comp.argosmodel && \
 
11
  /app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab_comp.argosmodel')"
12
 
13
  # Set environment variables
14
  ENV LT_HOST="0.0.0.0"
15
  ENV LT_PORT="7860"
16
- ENV LT_LOAD_ONLY="en,es,de,fr,ru,zh,kab"
17
  ENV LT_SSL=True
18
 
19
  ENTRYPOINT ["/app/venv/bin/libretranslate"]
 
2
 
3
  USER root
4
 
5
+ # Install tools to fetch and unzip the model
6
  RUN apt-get update && apt-get install -y curl unzip
7
 
8
  # Download and install the Kabyle model
9
  RUN curl -L -o /app/en_kab_comp.argosmodel \
10
+ https://huggingface.co/spaces/axxam/LibreTranslate_Kabyle/resolve/main/en_kab_comp.argosmodel && \
11
+ ls -lh /app/en_kab_comp.argosmodel && \
12
  /app/venv/bin/python3 -c "import argostranslate.package; argostranslate.package.install_from_path('/app/en_kab_comp.argosmodel')"
13
 
14
  # Set environment variables
15
  ENV LT_HOST="0.0.0.0"
16
  ENV LT_PORT="7860"
17
+ ENV LT_LOAD_ONLY="en,fr,kab"
18
  ENV LT_SSL=True
19
 
20
  ENTRYPOINT ["/app/venv/bin/libretranslate"]