ShreyMehra commited on
Commit
ae915b1
1 Parent(s): 96bdb8d

Add files via upload

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official lightweight Python image.
2
+ # https://hub.docker.com/_/python
3
+ FROM python:3.7
4
+
5
+ # Allow statements and log messages to immediately appear in the Knative logs
6
+ ENV PYTHONUNBUFFERED True
7
+
8
+ EXPOSE 8080
9
+
10
+ # Copy local code to the container image.
11
+ ENV APP_HOME /app
12
+ WORKDIR $APP_HOME
13
+ COPY . ./
14
+
15
+ # Install production dependencies.
16
+ RUN pip install -r requirements.txt
17
+
18
+ # Run the web service on container startup. Here we use the gunicorn
19
+ # webserver, with one worker process and 8 threads.
20
+ # For environments with multiple CPU cores, increase the number of workers
21
+ # to be equal to the cores available.
22
+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
23
+ CMD streamlit run --server.port 8080 --server.enableCORS false app.py