Skip to content

Commit

Permalink
Udpate README.md with EXPOSE instruction matching LISTEN_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Dec 8, 2017
1 parent 3a44650 commit 584b465
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ By default, the container made from this image will listen on port 80.

To change this behavior, set the `LISTEN_PORT` environment variable.

You might also need to create the respective `EXPOSE` Docker instruction.

You can do that in your `Dockerfile`, it would look something like:

```Dockerfile
FROM tiangolo/uwsgi-nginx:python3.6

ENV LISTEN_PORT 8080

EXPOSE 8080

COPY ./app /app
```

Expand Down

0 comments on commit 584b465

Please sign in to comment.