File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ own custom Docker image.
1212Deploy using Dockerfiles
1313------------------------
1414
15- With Dockerfiles, the stack you deploy your application upon is limitless. The only
16- requirement is that it sets a ENV entry to set the PORT environment variable. This is so
17- `slugrunner `_ can listen for when the process is alive or dead. For example:
15+ With Dockerfiles, the stack you deploy your application upon is limitless.
16+ The only requirement is that your application listens on the $PORT environment variable.
17+ This is so `slugrunner `_ can bind your application to an available port on the runtime host.
18+
19+ For example:
1820
1921.. code-block :: console
2022
@@ -25,7 +27,7 @@ requirement is that it sets a ENV entry to set the PORT environment variable. Th
2527 WORKDIR /app
2628 CMD python -m SimpleHTTPServer $PORT
2729
28- Which will serve your application's root directory on a static file server on Docker's
29- official CentOS image.
30+ This will serve your application's root directory on a static file server using Docker's
31+ official CentOS image. Note the server listens on $PORT, which is defaulted to 8000.
3032
3133.. _`slugrunner` : https://github.com/deis/slugrunner
You can’t perform that action at this time.
0 commit comments