Melika Kheirieh commited on
Commit
5c95355
·
1 Parent(s): 00ff3b7

fix(docker): ensure requirements and data folder are copied into HF build image

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -8,6 +8,7 @@ ENV PIP_NO_CACHE_DIR=1 \
8
 
9
  WORKDIR /home/user/app
10
 
 
11
  COPY requirements.txt /home/user/app/requirements.txt
12
 
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -17,8 +18,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
17
  apt-get purge -y gcc build-essential && \
18
  apt-get autoremove -y && apt-get clean -y
19
 
20
- COPY . /home/user/app
 
21
 
 
 
22
 
23
  EXPOSE 7860
24
 
 
8
 
9
  WORKDIR /home/user/app
10
 
11
+ # Step 1: Copy requirements to ensure pip install works
12
  COPY requirements.txt /home/user/app/requirements.txt
13
 
14
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
18
  apt-get purge -y gcc build-essential && \
19
  apt-get autoremove -y && apt-get clean -y
20
 
21
+ # Step 2: Copy the rest of the repo including data folder
22
+ COPY . /home/user/app/
23
 
24
+ # Optional check:
25
+ RUN ls -R /home/user/app/data
26
 
27
  EXPOSE 7860
28