Dockerfile 815 B

12345678910111213141516171819202122232425
  1. FROM centos:7
  2. ENTRYPOINT ["/tmp/docker-entrypoint.sh"]
  3. COPY docker-entrypoint.sh \
  4. keygen.sh \
  5. revoke.sh \
  6. /tmp/
  7. COPY openvpn/ /etc/openvpn/
  8. COPY stonevpn.conf /etc/stonevpn.conf
  9. RUN set -x \
  10. && yum install epel-release lzo net-tools iputils -y \
  11. && yum install openvpn stonevpn -y \
  12. && chmod +x /tmp/docker-entrypoint.sh \
  13. && chmod +x /tmp/keygen.sh \
  14. && chmod +x /tmp/revoke.sh \
  15. && chmod 400 /etc/openvpn/keys/*.key \
  16. && chmod 440 /etc/openvpn/keys/*.crt \
  17. && yum install -y https://centos7.iuscommunity.org/ius-release.rpm \
  18. && yum install -y git2u \
  19. && yum clean all \
  20. && rm -rf /var/cache/yum
  21. COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py
  22. EXPOSE 1194/udp