Dockerfile 781 B

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