Fix Dockerfile and create run script
This commit is contained in:
parent
93e6ce3f1c
commit
c1aef6f1aa
2 changed files with 16 additions and 1 deletions
|
@ -18,7 +18,7 @@ RUN apk add --no-cache ca-certificates wget \
|
|||
&& make \
|
||||
&& make install \
|
||||
# add vpn-slice with dependencies (dig) https://github.com/dlenski/vpn-slice
|
||||
&& apk add --no-cache python3 bind-tools && pip3 install --upgrade pip \
|
||||
&& apk add --no-cache python3 py3-pip bind-tools && pip3 install --upgrade pip \
|
||||
&& pip3 install https://github.com/dlenski/vpn-slice/archive/master.zip \
|
||||
# always add the docker DNS server
|
||||
&& grep -qxF 'nameserver 127.0.0.11' /etc/resolv.conf || echo 'nameserver 127.0.0.11' >> /etc/resolv.conf \
|
||||
|
|
15
run.sh
Executable file
15
run.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
CONTAINER_TAG=openconnect_vpn
|
||||
|
||||
docker build -t "$CONTAINER_TAG" build/
|
||||
|
||||
docker run \
|
||||
-it \
|
||||
--privileged \
|
||||
--cap-add NET_ADMIN \
|
||||
-e OPENCONNECT_URL= \
|
||||
-e OPENCONNECT_USER= \
|
||||
-p 9000:8888 \
|
||||
-p 9001:8889 \
|
||||
"$CONTAINER_TAG"
|
Loading…
Reference in a new issue