Update Dockerfile
Browse files- 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
|
| 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"]
|