add docker support

This commit is contained in:
Antoni Sawicki 2019-08-04 00:51:55 -07:00
parent 0e07f422f6
commit 327baf318a
3 changed files with 17 additions and 0 deletions

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM chromedp/headless-shell
ADD wrp-linux /wrp
ENTRYPOINT ["/wrp"]
ENV PATH="/headless-shell:${PATH}"
LABEL maintainer="as@tenoware.com"

View File

@ -23,3 +23,6 @@ windows:
clean:
rm -rf wrp-linux wrp-freebsd wrp-openbsd wrp-macos wrp-windows.exe wrp-linux-rpi
docker:
docker build -t tenox7/wrp:latest .

View File

@ -22,12 +22,21 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t
7. To send keystrokes fill K input box and press Go. There also are buttons for backspace, enter and arrow keys.
## Flags
```
-l listen address:port, default :8080
-h headed mode, display browser window
-d chromedp debug logging
```
## Docker
```
docker run -d -p 8080:8080 --name wrp --restart unless-stopped tenox7/wrp
docker logs -f wrp
```
## Minimal Requirements
- Server / Gateway should run on a modern hardware/os that supports memory hungry Chrome.