m93 commited on
Commit
8e00b09
·
verified ·
1 Parent(s): 986654d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy application
10
+ COPY app.py .
11
+
12
+ # Set environment variables
13
+ ENV PORT=7860
14
+ ENV MODEL_REPO_ID=m93/sentiment-model
15
+
16
+ # Expose port
17
+ EXPOSE 7860
18
+
19
+ # Run the application
20
+ CMD ["python", "app.py"]