Dockerfile 754 B

1234567891011121314151617181920212223
  1. FROM centos:7
  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. RUN set -x \
  9. && yum install epel-release lzo net-tools iputils -y \
  10. && yum install openvpn stonevpn -y \
  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://centos7.iuscommunity.org/ius-release.rpm \
  16. && yum install -y git2u \
  17. && yum clean all \
  18. && rm -rf /var/cache/yum
  19. COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py
  20. EXPOSE 1194