mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 12:54:24 +01:00
docs: add example Dockerfile
This commit is contained in:
parent
9aeb1a9ad5
commit
78f45f5080
@ -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.
|
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
|
## License
|
||||||
|
|
||||||
|
15
docs/Dockerfile
Normal file
15
docs/Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user