Skip to content

Commit ec67805

Browse files
committed
Add Docker support
1 parent add6762 commit ec67805

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM golang:1.6-onbuild
2+
3+
RUN mkdir /data
4+
VOLUME ["/data"]
5+
WORKDIR /data
6+
EXPOSE 5000
7+
ENTRYPOINT ["app"]

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ This server is for development purposes only.
33

44
# Download
55

6+
## Binaries
67
`simplehttp2server` is `go get`-able:
78

89
```
@@ -11,13 +12,21 @@ $ go get github.com/GoogleChrome/simplehttp2server
1112

1213
Precompiled binaries can be found in the [release section](https://github.com/GoogleChrome/simplehttp2server/releases).
1314

15+
## Brew
1416
You can also install `simplehttp2server` using brew if you are on macOS:
1517

1618
```
1719
$ brew tap GoogleChrome/simplehttp2server https://github.com/GoogleChrome/simplehttp2server
1820
$ brew install simplehttp2server
1921
```
2022

23+
## Docker
24+
If you have Docker set up, you can serve the current directory via `simplehttp2server` using the following command:
25+
26+
```
27+
$ docker run -p 5000:5000 -v $PWD:/data surma/simplehttp2server
28+
```
29+
2130
# Push Manifest
2231

2332
`simplehttp2server` supports the [push manifest](https://www.npmjs.com/package/http2-push-manifest).

0 commit comments

Comments
 (0)