diff --git a/Dockerfile b/Dockerfile index 2dad10e..6bb081d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,12 @@ RUN set -xe && apk add --no-cache unzip wget nginx certbot openssl # setup core files RUN set -xe && mkdir -p /opt/xray && \ - ln -s /opt/config/certs /etc/letsencrypt && \ unzip /opt/Xray-linux-64.zip -d /opt/xray && \ rm /opt/Xray-linux-64.zip && \ chmod +x /opt/run.sh /opt/crypt.sh # crond -RUN set -xe && mv /opt/crontab /var/spool/cron/crontabs/root +# RUN set -xe && mv /opt/crontab /var/spool/cron/crontabs/root # nginx RUN set -xe && addgroup www && \ diff --git a/image/crontab b/image/crontab index 59f7da3..fbc7611 100644 --- a/image/crontab +++ b/image/crontab @@ -1 +1 @@ -0 */24 * * * certbot renew \ No newline at end of file +# 0 */24 * * * certbot renew \ No newline at end of file diff --git a/image/run.sh b/image/run.sh index 6706deb..04fb7fa 100644 --- a/image/run.sh +++ b/image/run.sh @@ -6,7 +6,6 @@ source /opt/crypt.sh mkdir -p /opt/config mkdir -p /opt/config/logs -mkdir -p /opt/config/certs mkdir -p /opt/config/logs/nginx mkdir -p /opt/config/logs/xray mkdir -p /opt/config/logs/crond