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

fix(docker): copy requirements + repo for HF build compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -6,10 +6,10 @@ ENV PIP_NO_CACHE_DIR=1 \
6
  PORT=7860 \
7
  GRADIO_SERVER_NAME=0.0.0.0
8
 
9
- # HuggingFace mounts your repository at /home/user/app in RUN time
10
  WORKDIR /home/user/app
11
 
12
- # Install Python dependencies — requirements.txt is mounted at run time → accessible here
 
13
  RUN apt-get update && apt-get install -y --no-install-recommends \
14
  gcc build-essential && \
15
  pip install --no-cache-dir -U pip && \
@@ -17,6 +17,9 @@ 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
  EXPOSE 7860
21
 
22
  ENTRYPOINT []
 
6
  PORT=7860 \
7
  GRADIO_SERVER_NAME=0.0.0.0
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 \
14
  gcc build-essential && \
15
  pip install --no-cache-dir -U pip && \
 
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
 
25
  ENTRYPOINT []