|
@@ -5,18 +5,21 @@ COPY docker-entrypoint.sh \
|
|
|
/tmp/
|
|
|
COPY openvpn/ /etc/openvpn/
|
|
|
COPY stonevpn.conf /etc/stonevpn.conf
|
|
|
-COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py
|
|
|
+
|
|
|
RUN set -x \
|
|
|
&& yum install epel-release lzo net-tools iputils -y \
|
|
|
&& yum install openvpn stonevpn -y \
|
|
|
- && yum clean all \
|
|
|
+# && 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 https://centos7.iuscommunity.org/ius-release.rpm \
|
|
|
- && yum install -y git2u
|
|
|
+ && yum install -y git2u \
|
|
|
+ && yum clean all
|
|
|
+
|
|
|
+COPY app.py /usr/lib/python2.7/site-packages/StoneVPN/app.py
|
|
|
|
|
|
#CMD ["/usr/sbin/openvpn", "--config", "/etc/openvpn/ovpn.conf"]
|
|
|
EXPOSE 1194
|