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 -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://centos7.iuscommunity.org/ius-release.rpm \ && yum install -y git2u \ && yum clean all \ && rm -rf /var/cache/yum COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py EXPOSE 1194