deva8217 commited on
Commit
2c73e78
·
verified ·
1 Parent(s): 20dcb51

Create Dockerfile

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