Dockerfile 895 B

1234567891011121314151617181920212223242526
  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://repo.ius.io/ius-release-el7.rpm \
  18. https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
  19. && yum install -y git224 \
  20. && yum clean all \
  21. && rm -rf /var/cache/yum
  22. COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py
  23. EXPOSE 1194/udp