FROM centos:7 ENTRYPOINT ["/tmp/docker-entrypoint.sh"] COPY docker-entrypoint.sh \ keygen.sh \ revoke.sh \ /tmp/ COPY openvpn/ /etc/openvpn/ COPY stonevpn.conf /etc/stonevpn.conf RUN set -x \ && yum install epel-release lzo net-tools iputils nftables -y \ && yum install openvpn stonevpn -y \ && chmod +x /tmp/docker-entrypoint.sh \ && chmod +x /tmp/keygen.sh \ && chmod +x /tmp/revoke.sh \ && chmod 400 /etc/openvpn/keys/*.key \ && chmod 440 /etc/openvpn/keys/*.crt \ && yum install -y https://repo.ius.io/ius-release-el7.rpm \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \ && yum install -y git224 \ && yum clean all \ && rm -rf /var/cache/yum COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py EXPOSE 1194/udp