From 985580b4ed5d90a116e5f0ada69fa1c3f174d8c1 Mon Sep 17 00:00:00 2001 From: Cao Lei Date: Sat, 1 Jun 2024 23:19:29 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d95bf8f..f4c39c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,13 @@ FROM irinesistiana/mosdns:latest -RUN apk update && apk add --no-cache curl - -RUN apk add --no-cache tzdata && \ +RUN apk update && \ + apk add --no-cache tzdata && \ cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" > /etc/timezone && \ apk del tzdata -COPY /etc/mosdns/ /etc/mosdns/ -COPY /etc/mosdns/mosdns.sh /etc/periodic/daily/mosdns.sh -RUN chmod +x /etc/periodic/daily/mosdns.sh +COPY ./etc/mosdns/ /etc/mosdns/ -WORKDIR /etc/mosdns +RUN chmod +x /etc/mosdns/mosdns.sh CMD ["/usr/bin/mosdns start --dir /etc/mosdns"]