1234567891011121314151617181920 |
- FROM centos:6.9
- ENTRYPOINT ["/tmp/docker-entrypoint.sh"]
- COPY docker-entrypoint.sh \
- keygen.sh \
- /tmp/
- COPY openvpn/ /etc/openvpn/
- RUN set -x \
- && yum install epel-release lzo net-tools iputils -y \
- && yum install openvpn stonevpn -y \
- && yum clean all \
- && chmod +x /tmp/docker-entrypoint.sh \
- && chmod +x /tmp/keygen.sh \
- && chmod 400 /etc/openvpn/keys/*.key \
- && chmod 440 /etc/openvpn/keys/*.crt \
- && yum install -y https://centos6.iuscommunity.org/ius-release.rpm \
- && yum install -y git2u
- CMD ["/usr/sbin/openvpn", "--config", "/etc/openvpn/ovpn.conf"]
- EXPOSE 1195
|