Dockerfile 683 B

1234567891011121314151617181920
  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. RUN set -x \
  8. && yum install epel-release lzo net-tools iputils -y \
  9. && yum install openvpn stonevpn -y \
  10. && yum clean all \
  11. && chmod +x /tmp/docker-entrypoint.sh \
  12. && chmod +x /tmp/keygen.sh \
  13. && chmod 400 /etc/openvpn/keys/*.key \
  14. && chmod 440 /etc/openvpn/keys/*.crt \
  15. && yum install -y https://centos6.iuscommunity.org/ius-release.rpm \
  16. && yum install -y git2u
  17. CMD ["/usr/sbin/openvpn", "--config", "/etc/openvpn/ovpn.conf"]
  18. EXPOSE 1195