asmithaaa commited on
Commit
5bd8cb4
·
verified ·
1 Parent(s): 5f26ffe

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies (Required for XGBoost)
8
+ RUN apt-get update && apt-get install -y \
9
+ build-essential \
10
+ libgomp1 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy requirements and install
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy everything (this includes your 'pages/' folder and 'models/' folder)
18
+ COPY . .
19
+
20
+ # Expose Hugging Face's default port
21
+ EXPOSE 7860
22
+
23
+ # Run the main entry point (usually named app.py or main.py)
24
+ # Streamlit automatically detects the /pages folder for the sidebar
25
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]