Melika Kheirieh commited on
Commit
aa4ed26
·
1 Parent(s): 6e9c311

fix(hf-space): use proper Dockerfile for HF mount paths

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -6,14 +6,15 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
6
  PORT=7860 \
7
  GRADIO_SERVER_NAME=0.0.0.0
8
 
9
- WORKDIR /app
10
- COPY . /app
 
 
 
11
 
12
- RUN pip install --no-cache-dir -U pip && pip install --no-cache-dir -r requirements.txt
13
 
14
  EXPOSE 7860
15
 
16
  # Ensure base image ENTRYPOINT (if any) doesn't override ours
17
  ENTRYPOINT []
18
- RUN echo "=== REBUILD $(date) ==="
19
  CMD ["python", "-u", "start.py"]
 
6
  PORT=7860 \
7
  GRADIO_SERVER_NAME=0.0.0.0
8
 
9
+ WORKDIR /home/user/app
10
+
11
+
12
+ RUN pip install --no-cache-dir -U pip && \
13
+ pip install --no-cache-dir -r requirements.txt
14
 
 
15
 
16
  EXPOSE 7860
17
 
18
  # Ensure base image ENTRYPOINT (if any) doesn't override ours
19
  ENTRYPOINT []
 
20
  CMD ["python", "-u", "start.py"]