Krishna-Vishista commited on
Commit
b39624e
·
verified ·
1 Parent(s): 98b1c76

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -9,20 +9,17 @@ USER user
9
  # Set the PATH for user's local installations
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
- # Set the working directory inside the container
13
  WORKDIR /app
14
 
15
- # Copy requirements.txt and install dependencies
16
  COPY --chown=user ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
 
19
- # Copy all application files (including app.py, kmeans_model.joblib, scaler_model.joblib)
20
  COPY --chown=user . /app
21
 
22
- # Command to run your Flask app
23
- # Flask typically uses a WSGI server like Gunicorn or directly app.run() for simple cases.
24
- # For a simple Flask app to run, you can use:
25
- CMD ["python","app.py"] # This assumes app.py has app.run(host="0.0.0.0", port=7860)
26
 
27
- # OR, if you want a more robust setup with Gunicorn (add gunicorn to requirements.txt):
28
- # CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]
 
 
9
  # Set the PATH for user's local installations
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
+
13
  WORKDIR /app
14
 
15
+
16
  COPY --chown=user ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
 
19
+
20
  COPY --chown=user . /app
21
 
 
 
 
 
22
 
23
+ CMD ["python", "app.py"]
24
+
25
+