From 022af5248cec1d790b73ee9c5bf3e3d2474957a6 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Wed, 15 Sep 2021 21:55:05 +0800 Subject: [PATCH] update: reduce a docker layer --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 907faa8..13a8b41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,9 @@ RUN apk --update add --no-cache curl wget && \ sh /asset.sh FROM alpine -COPY ./init.sh / -COPY ./overture /etc/overture/ +COPY ["./overture/", "./init.sh", "/etc/overture/"] COPY --from=asset /tmp/asset/ /usr/bin/ -RUN mkdir -p /etc/cleardns && \ - sed -i '$i\0\t2\t*\t*\t*\t/etc/overture/update.sh' /var/spool/cron/crontabs/root +RUN mv /etc/overture/init.sh / && \ + mkdir -p /etc/cleardns && \ + sed -i '$i\0\t4\t*\t*\t*\t/etc/overture/update.sh' /var/spool/cron/crontabs/root CMD ["sh","/init.sh"]