Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
caleee committed Jun 1, 2024
1 parent 518f76f commit 985580b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 985580b

Please sign in to comment.