HarryDataScience commited on
Commit
5185bb3
·
1 Parent(s): 52bfa69

Serve HTML frontend correctly

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -2,10 +2,8 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir streamlit plotly shap xgboost scikit-learn joblib requests pandas numpy matplotlib
7
-
8
  COPY frontend/ ./frontend/
 
9
  EXPOSE 7860
10
 
11
- CMD ["streamlit", "run", "frontend/app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  COPY frontend/ ./frontend/
6
+
7
  EXPOSE 7860
8
 
9
+ CMD ["python", "-m", "http.server", "7860", "--directory", "frontend"]