# docker build -t theia-vpn .
FROM theiaide/theia:next

USER root
RUN apk add openconnect shadow --no-cache  --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted

COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY settings.json  /settings.json

HEALTHCHECK  --interval=10s --timeout=10s --start-period=10s \
  CMD /sbin/ifconfig tun0

ENTRYPOINT ["/docker-entrypoint.sh"]
