Anthony Truchet commited on
Commit
49b1b27
·
1 Parent(s): a2dbf08

docs: document local launch of the app using docker

Browse files
Files changed (1) hide show
  1. README.md +17 -1
README.md CHANGED
@@ -13,4 +13,20 @@ duplicated_from: SpacesExamples/streamlit-docker-example
13
 
14
  Streamlit Docker Template is a template for creating a Streamlit app with Docker and Hugging Face Spaces.
15
 
16
- Code from https://docs.streamlit.io/library/get-started/create-an-app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  Streamlit Docker Template is a template for creating a Streamlit app with Docker and Hugging Face Spaces.
15
 
16
+ Code from https://docs.streamlit.io/library/get-started/create-an-app
17
+
18
+ ## Local execution ##
19
+
20
+ You need *Docker* installed.
21
+ On MacOSX we recommand using *colima* if you do not want to use *Docker Desktop*
22
+ for licensing reasons.
23
+
24
+ * https://docs.docker.com/desktop/install/mac-install/
25
+ * https://github.com/abiosoft/colima
26
+
27
+ ```shell
28
+ $ colima start --cpu 4 --memory 16 --network-address # Adjust ressources as you wish
29
+ $ docker build -t persistent-docker-space .
30
+ $ docker run -it -p 8501:8501 persistent-docker-space:latest
31
+
32
+ ```