Skip to content

Commit ac12f9a

Browse files
author
Gabriel Monroy
committed
Clarify binding to $PORT with Dockerfiles
1 parent 273551c commit ac12f9a

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

docs/developer/dockerfile.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ own custom Docker image.
1212
Deploy 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

0 commit comments

Comments
 (0)