diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a4c0535 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM chromedp/headless-shell +ADD wrp-linux /wrp +ENTRYPOINT ["/wrp"] +ENV PATH="/headless-shell:${PATH}" +LABEL maintainer="as@tenoware.com" diff --git a/Makefile b/Makefile index 01e579c..6daadbb 100644 --- a/Makefile +++ b/Makefile @@ -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 . diff --git a/README.md b/README.md index 256c8d8..ce3f8f2 100644 --- a/README.md +++ b/README.md @@ -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.