leo861 commited on
Commit
601fb3d
·
verified ·
1 Parent(s): 738a94e

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -11,6 +11,9 @@ ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
  WORKDIR /app
13
 
 
 
 
14
  # Copy requirements first to leverage Docker cache
15
  COPY --chown=user requirements.txt requirements.txt
16
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
@@ -22,9 +25,6 @@ COPY --chown=user . /app
22
  ENV FLASK_APP=app.py
23
  ENV FLASK_ENV=production
24
 
25
- # Create necessary directories
26
- RUN mkdir -p /app/heart/models
27
-
28
  # Expose the port the app runs on
29
  EXPOSE 7860
30
 
 
11
 
12
  WORKDIR /app
13
 
14
+ # Create necessary directories
15
+ RUN mkdir -p /app/heart/models /app/models
16
+
17
  # Copy requirements first to leverage Docker cache
18
  COPY --chown=user requirements.txt requirements.txt
19
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
25
  ENV FLASK_APP=app.py
26
  ENV FLASK_ENV=production
27
 
 
 
 
28
  # Expose the port the app runs on
29
  EXPOSE 7860
30