-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
31 lines (16 loc) · 1.35 KB
/
dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM masx200/deno-ddns-over-https-client-deno-dns-over-https-server:2.3.1-2.1.1
WORKDIR /root
COPY ./entry.sh /root/entry.sh
# COPY ./start.sh /root/start.sh
COPY ./deno-dns-over-https-server.sh /root/deno-dns-over-https-server.sh
COPY ./deno-ddns-over-https-client.sh /root/deno-ddns-over-https-client.sh
COPY ./deno-dns-over-https-server-main /root/deno-dns-over-https-server-main
COPY ./deno-ddns-over-https-client-main /root/deno-ddns-over-https-client-main
CMD ["/bin/bash", "-i", "/root/entry.sh"]
ENV TZ=Asia/Shanghai
ENV PATH=/usr/local/bin:/root/deno-v-2.0.2:/root/node-v20.18.0-linux-x64/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/root/tailscale
RUN chmod 777 /root/deno-ddns-over-https-client.sh && chmod 777 /root/*.sh
RUN bash -c "find . -maxdepth 1 -type f -name \"*.sh\" -exec dos2unix {} \;"
RUN rm -fvr /root/deno-dns-over-https-server-main/node_modules && rm -fvr /root/deno-dns-over-https-server-main/static/node_modules && cd /root/deno-dns-over-https-server-main && deno cache --allow-import "main.tsx" && rm -fvr /root/deno-dns-over-https-server-main/deno.lock
RUN rm -fvr /root/deno-ddns-over-https-client-main/node_modules && cd /root/deno-ddns-over-https-client-main && deno cache --allow-import "run_ddns_interval_client.ts" && rm -fvr /root/deno-ddns-over-https-client-main/deno.lock
RUN rm -frv /deno/* && npx -y cnpm i -g cross-env