aryan365 commited on
Commit
9692ec5
·
verified ·
1 Parent(s): 451839d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -20,9 +20,9 @@ COPY fresh_model.keras /app/
20
  # Install dependencies
21
  RUN pip install --no-cache-dir -r requirements.txt
22
  RUN pip install --upgrade tensorflow keras
23
-
24
  # Expose the port
25
- EXPOSE 5000
26
 
27
  # Command to run the app
28
  CMD ["python", "app.py"]
 
20
  # Install dependencies
21
  RUN pip install --no-cache-dir -r requirements.txt
22
  RUN pip install --upgrade tensorflow keras
23
+ RUN python -c "from tensorflow.keras.models import load_model; load_model('fresh_model.keras')"
24
  # Expose the port
25
+ EXPOSE 8080
26
 
27
  # Command to run the app
28
  CMD ["python", "app.py"]