namb0010 commited on
Commit
5557d30
·
1 Parent(s): 5e83896

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Base Image to use
2
+ FROM python:3.7.9
3
+
4
+ #Expose port 8080
5
+ EXPOSE 8080
6
+
7
+ #Copy Requirements.txt file into app directory
8
+ COPY requirements.txt app/requirements.txt
9
+
10
+ #install all requirements in requirements.txt
11
+ RUN pip install -r app/requirements.txt
12
+
13
+ #Copy all files in current directory into app directory
14
+ COPY . /app
15
+
16
+ #Change Working Directory to app directory
17
+ WORKDIR /app
18
+
19
+ #Run the application on port 8080
20
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8080", "--server.address=0.0.0.0"]