2019-09-18 15:32:57 +02:00
|
|
|
FROM alpine:edge
|
2018-11-29 13:07:38 +01:00
|
|
|
MAINTAINER Wolfgang Klinger <wolfgang@wazum.com>
|
|
|
|
|
|
|
|
# openconnect is not yet available on main
|
2019-09-18 15:32:57 +02:00
|
|
|
RUN apk add --no-cache libcrypto1.1 libssl1.1 libstdc++ --repository http://dl-cdn.alpinelinux.org/alpine/edge/main
|
|
|
|
RUN apk add --no-cache oath-toolkit-libpskc --repository http://dl-cdn.alpinelinux.org/alpine/edge/community
|
|
|
|
RUN apk add --no-cache nettle --repository http://dl-cdn.alpinelinux.org/alpine/edge/main
|
|
|
|
RUN apk add --no-cache openconnect tinyproxy --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing
|
2018-11-29 13:07:38 +01:00
|
|
|
|
2019-09-18 15:32:57 +02:00
|
|
|
RUN apk --no-cache add ca-certificates wget && \
|
|
|
|
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
|
|
|
|
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk && \
|
|
|
|
apk add glibc-2.30-r0.apk
|
2018-11-29 13:07:38 +01:00
|
|
|
|
|
|
|
# Use an up-to-date version of vpnc-script
|
2019-09-18 15:32:57 +02:00
|
|
|
# https://www.infradead.org/openconnect/vpnc-script.html
|
2018-11-29 13:07:38 +01:00
|
|
|
COPY vpnc-script /etc/vpnc/vpnc-script
|
|
|
|
RUN chmod 755 /etc/vpnc/vpnc-script
|
|
|
|
|
2019-09-18 15:32:57 +02:00
|
|
|
COPY tinyproxy.conf /etc/tinyproxy.conf
|
|
|
|
|
2018-11-29 13:07:38 +01:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|