samarth-ht commited on
Commit
5eb15d7
·
1 Parent(s): cbaf699

fix: update Dockerfile to use HOME variable for environment paths and file copies

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -32,15 +32,15 @@ ENV HOME=/home/hyathi \
32
  WORKDIR $HOME/app
33
 
34
  # Environment dependencies
35
- ENV TRANSFORMERS_CACHE=/app/models
36
- ENV HF_HOME=/app/models
37
- ENV AUTOT_CACHE=/app/models
38
- ENV PYANNOTE_CACHE=/app/models/pyannote
39
 
40
  # Copy all necessary files
41
- COPY requirements.txt /app/requirements.txt
42
- COPY README.md /app/README.md
43
- COPY scraibe /app/scraibe
44
 
45
  # Installing all necessary dependencies and running the application with a personalized Hugging-Face-Token
46
  RUN sudo apt update -y && sudo apt upgrade -y && \
 
32
  WORKDIR $HOME/app
33
 
34
  # Environment dependencies
35
+ ENV TRANSFORMERS_CACHE=$HOME/app/models
36
+ ENV HF_HOME=$HOME/app/models
37
+ ENV AUTOT_CACHE=$HOME/app/models
38
+ ENV PYANNOTE_CACHE=$HOME/app/models/pyannote
39
 
40
  # Copy all necessary files
41
+ COPY requirements.txt $HOME/app/requirements.txt
42
+ COPY README.md $HOME/app/README.md
43
+ COPY scraibe $HOME/app/scraibe
44
 
45
  # Installing all necessary dependencies and running the application with a personalized Hugging-Face-Token
46
  RUN sudo apt update -y && sudo apt upgrade -y && \