Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -15,6 +15,7 @@ RUN useradd -m -u 1000 user
|
|
| 15 |
USER user
|
| 16 |
ENV HOME /home/user
|
| 17 |
ENV PATH $HOME/.local/bin:$PATH
|
|
|
|
| 18 |
|
| 19 |
WORKDIR $HOME
|
| 20 |
RUN git clone https://github.com/BramVanroy/mateo-demo.git
|
|
@@ -22,6 +23,11 @@ WORKDIR $HOME/mateo-demo
|
|
| 22 |
|
| 23 |
RUN python -m pip install --no-cache-dir --upgrade pip && python -m pip install --no-cache-dir --upgrade .
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
EXPOSE 7860
|
| 26 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 27 |
|
|
|
|
| 15 |
USER user
|
| 16 |
ENV HOME /home/user
|
| 17 |
ENV PATH $HOME/.local/bin:$PATH
|
| 18 |
+
ENV HF_HUB_ENABLE_HF_TRANSFER=1
|
| 19 |
|
| 20 |
WORKDIR $HOME
|
| 21 |
RUN git clone https://github.com/BramVanroy/mateo-demo.git
|
|
|
|
| 23 |
|
| 24 |
RUN python -m pip install --no-cache-dir --upgrade pip && python -m pip install --no-cache-dir --upgrade .
|
| 25 |
|
| 26 |
+
# Preload models
|
| 27 |
+
RUN huggingface-cli download facebook/nllb-200-distilled-600M pytorch_model.bin sentencepiece.bpe.model tokenizer.json
|
| 28 |
+
RUN huggingface-cli download Unbabel/wmt22-comet-da checkpoints/model.ckpt
|
| 29 |
+
RUN huggingface-cli download bert-base-multilingual-cased model.safetensors tokenizer.json vocab.txt
|
| 30 |
+
|
| 31 |
EXPOSE 7860
|
| 32 |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
| 33 |
|