tommulder commited on
Commit
e14d9c4
·
1 Parent(s): e3dbe41

Auto-update API deployment from Makefile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -29,12 +29,14 @@ WORKDIR $HOME/app
29
  RUN pip install --no-cache-dir --upgrade pip
30
 
31
  # Copy requirements first for better Docker layer caching
 
32
  COPY --chown=user requirements.txt $HOME/app/
33
 
34
  # Install Python dependencies
35
  RUN pip install --no-cache-dir --user -r requirements.txt
36
 
37
  # Copy the source code
 
38
  COPY --chown=user src/ $HOME/app/src/
39
  COPY --chown=user models/ $HOME/app/models/
40
 
 
29
  RUN pip install --no-cache-dir --upgrade pip
30
 
31
  # Copy requirements first for better Docker layer caching
32
+ # Note: For HF Spaces deployment, files are in root. For local builds, adjust paths as needed.
33
  COPY --chown=user requirements.txt $HOME/app/
34
 
35
  # Install Python dependencies
36
  RUN pip install --no-cache-dir --user -r requirements.txt
37
 
38
  # Copy the source code
39
+ # Note: For HF Spaces, files are synced to root directory
40
  COPY --chown=user src/ $HOME/app/src/
41
  COPY --chown=user models/ $HOME/app/models/
42