minhpng commited on
Commit
475073b
·
1 Parent(s): 4c2f6f7
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -1,9 +1,4 @@
1
- FROM python:3.9 AS model
2
- RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash
3
- RUN yum install git-lfs -y
4
- RUN git lfs install
5
- RUN git clone https://huggingface.co/Systran/faster-whisper-small /tmp/model
6
- RUN rm -rf /tmp/model/.git
7
 
8
 
9
  # Use the official Python 3.10.9 image
@@ -26,9 +21,9 @@ ENV HOME=/home/user \
26
 
27
  WORKDIR $HOME/app
28
 
29
- RUN mkdir -p $HOME/app/cached/hub/models--Systran--faster-whisper-small
30
 
31
- COPY --from=model /tmp/model $HOME/app/cached/hub/models--Systran--faster-whisper-small
32
 
33
  COPY --chown=user . $HOME/app
34
 
 
1
+
 
 
 
 
 
2
 
3
 
4
  # Use the official Python 3.10.9 image
 
21
 
22
  WORKDIR $HOME/app
23
 
24
+ # RUN mkdir -p $HOME/app/cached/hub/models--Systran--faster-whisper-small
25
 
26
+ # COPY --from=model /tmp/model $HOME/app/cached/hub/models--Systran--faster-whisper-small
27
 
28
  COPY --chown=user . $HOME/app
29