docs: add example Dockerfile

This commit is contained in:
cn 2020-07-13 10:37:08 +02:00
parent 9aeb1a9ad5
commit 78f45f5080
3 changed files with 19 additions and 2 deletions

View File

@ -57,9 +57,11 @@ For more information about OpenVPN status file and version, see their [man page]
If the information exposed is important to you serve it via the VPN or use a webserver as a proxy to handle SSL and/or HTTP authentication.
### Init scripts
### Startup
The [Debian 6 init.d script](init.d/debian-6-openvpn-status-web) assumes that openvpn-status-web is installed into the system ruby (no RVM support) and the config.yaml is at `/opt/openvpn-status-web/config.yaml`. Modify to your needs.
There is a [Dockerfile](docs/Dockerfile) that can be used to build a Docker image for running openvpn-status-web.
The [Debian 6 init script](docs/debian-init-openvpn-status-web) assumes that openvpn-status-web is installed into the system ruby (no RVM support) and the config.yaml is at `/opt/openvpn-status-web/config.yaml`. Modify to your needs.
## License

15
docs/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alpine:3.12
EXPOSE 8080
ENV VERSION=2.1.0
RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-etc ruby-webrick && \
apk --no-cache add --virtual .build-deps ruby-dev build-base tzdata && \
gem install --no-document openvpn-status-web -v ${VERSION} && \
# set timezone to Berlin
cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
apk del .build-deps
ENTRYPOINT ["openvpn-status-web", "/etc/openvpn-status-web/config.yml"]