fk1234 commited on
Commit
26b16fd
·
verified ·
1 Parent(s): dd6a5db

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile.txt +5 -5
  2. requirements.txt +0 -4
Dockerfile.txt CHANGED
@@ -1,4 +1,4 @@
1
- # Use the official Python image
2
  FROM python:3.10-slim
3
 
4
  # Set environment variables
@@ -8,15 +8,15 @@ ENV PYTHONUNBUFFERED=1
8
  # Set working directory
9
  WORKDIR /app
10
 
11
- # Install dependencies
12
  COPY requirements.txt /app/
13
  RUN pip install --upgrade pip && pip install -r requirements.txt
14
 
15
- # Copy the rest of the app
16
  COPY . /app/
17
 
18
- # Expose Streamlit port
19
  EXPOSE 7860
20
 
21
- # Run Streamlit app
22
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
1
+ # Use the official Python base image
2
  FROM python:3.10-slim
3
 
4
  # Set environment variables
 
8
  # Set working directory
9
  WORKDIR /app
10
 
11
+ # Copy dependency file first and install
12
  COPY requirements.txt /app/
13
  RUN pip install --upgrade pip && pip install -r requirements.txt
14
 
15
+ # Copy all project files to container
16
  COPY . /app/
17
 
18
+ # Expose Streamlit default port
19
  EXPOSE 7860
20
 
21
+ # Run the Streamlit app
22
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
requirements.txt CHANGED
@@ -2,7 +2,3 @@ streamlit
2
  pandas
3
  scikit-learn
4
  joblib
5
-
6
- numpy
7
- os
8
- re
 
2
  pandas
3
  scikit-learn
4
  joblib