Ars135 commited on
Commit
198cc60
·
verified ·
1 Parent(s): 76760b7

Upload Dockerfile.py

Browse files
Files changed (1) hide show
  1. Dockerfile.py +20 -0
Dockerfile.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python version
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy all files from your computer to the container
8
+ COPY . /app
9
+
10
+ # Install the required libraries
11
+ RUN pip install flask pandas scikit-learn nltk joblib
12
+
13
+ # Download NLTK data inside the container so it doesn't fail
14
+ RUN python -m nltk.downloader stopwords wordnet punkt punkt_tab
15
+
16
+ # Expose Port 5000 so we can access the app
17
+ EXPOSE 5000
18
+
19
+ # Command to run the app when the container starts
20
+ CMD ["python", "app.py"]