deva8217 commited on
Commit
45b576a
·
verified ·
1 Parent(s): 29945db

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a slim Python image
2
+ FROM python:3.9-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and install
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy app and model
12
+ COPY app.py .
13
+ COPY superkart_sales_forecast.pkl .
14
+
15
+ # Expose the port Hugging Face requires
16
+ EXPOSE 7860
17
+
18
+ # Run the Flask app
19
+ CMD ["python", "app.py"]