Skip to content

Commit

Permalink
Default port to 80 (HTTP default) in Docker build
Browse files Browse the repository at this point in the history
This means the port will not need to be specified in some cases.
  • Loading branch information
textbook committed Nov 4, 2019
1 parent 7f774db commit 7172b27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ RUN python setup.py install
COPY launch.py .
COPY config.json .

ENV PORT=5000
EXPOSE 5000
ENV PORT=80
EXPOSE 80

ENTRYPOINT [ "python3" ]
CMD [ "./launch.py" ]
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ Running it

If you just want to run Flash locally, you can use the included ``Dockerfile``
to build and run a `Docker`_ container. This is a two-step process, after which
Flash will be available at ``$(docker-machine ip):5000``::
Flash will be available at ``http://localhost:5000``::

docker build -t textbook/flash .
docker run -p 5000:5000 -d textbook/flash
docker run -p 5000:80 textbook/flash

If your ``config.json`` includes environment variable references, or you want
to override the configuration completely with ``$FLASH_CONFIG``, you can supply
Expand Down

0 comments on commit 7172b27

Please sign in to comment.