Skip to content

Commit

Permalink
Change Dockerfile default port to 80
Browse files Browse the repository at this point in the history
  • Loading branch information
beefsack committed Aug 25, 2020
1 parent 82bb829 commit 4a5c23a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN go build
COPY docker/run.sh .

# By default, script-httpd listens on all interfaces on port 8080
EXPOSE 8080
ENV SCRIPT_HTTPD_ADDR :8080
EXPOSE 80
ENV SCRIPT_HTTPD_ADDR :80

# By default, script-httpd executes /script
ENV SCRIPT_HTTPD_CMD /script
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ The official Docker image is [beefsack/script-httpd](https://hub.docker.com/r/be

It can be configured using the following environment variables:

* `SCRIPT_HTTPD_ADDR` - the address to listen on inside the container, defaults to `:8080`
* `SCRIPT_HTTPD_ADDR` - the address to listen on inside the container, defaults to `:80`
* `SCRIPT_HTTPD_CMD` - the command to execute, defaults to `/script`

#### Mounting script and running official image

```
$ docker run -it --rm -p 8080:8080 -v /path/to/my/script:/script beefsack/script-httpd:latest
2020/08/25 04:27:46 listening on :8080, proxying to /script
$ docker run -it --rm -p 8080:80 -v /path/to/my/script:/script beefsack/script-httpd:latest
2020/08/25 04:27:46 listening on :80, proxying to /script
...
Expand Down

0 comments on commit 4a5c23a

Please sign in to comment.