tommulder commited on
Commit
dd24072
·
1 Parent(s): f8d9498

fix: Update Dockerfile paths for HF Spaces structure

Browse files

- Changed docker/requirements.txt to requirements.txt
- Changed ../src/ to src/
- Changed ../models/ to models/
- Changed ../main.py to main.py
- All files are at root level in HF Space, not in subdirectories

Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -29,18 +29,18 @@ 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 docker/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 from parent directory
38
- COPY --chown=user ../src/ $HOME/app/src/
39
- COPY --chown=user ../models/ $HOME/app/models/
40
 
41
- # Copy the main entry point from parent directory
42
- COPY --chown=user ../main.py $HOME/app/
43
- COPY --chown=user ../README.md $HOME/app/
44
 
45
  # Expose the port that the app runs on (HF Spaces default is 7860)
46
  EXPOSE 7860
 
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
 
41
+ # Copy the main entry point
42
+ COPY --chown=user main.py $HOME/app/
43
+ COPY --chown=user README.md $HOME/app/
44
 
45
  # Expose the port that the app runs on (HF Spaces default is 7860)
46
  EXPOSE 7860