Commit f5ae8a01 authored by Li Mi's avatar Li Mi

还是更新apk

parent bb642b26
FROM alpine
RUN apk update && \
apk add wget unzip tar gzip
apk add wget curl unzip tar gzip ca-certificates
RUN wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz && \
tar xvzf AdGuardHome_linux_amd64.tar.gz
# 第二阶段,只有二进制文件
......
FROM alpine
RUN apk update && \
apk add wget unzip tar gzip ca-certificates
apk add wget curl unzip tar gzip ca-certificates
RUN curl https://api.github.com/repos/pymumu/smartdns/releases/latest \
| grep browser_download_url \
| grep smartdns-x86_64 \
......@@ -9,6 +9,6 @@ RUN curl https://api.github.com/repos/pymumu/smartdns/releases/latest \
# 第二阶段,只有二进制文件
FROM alpine
RUN apk update && \
apk add ca-certificates -y
apk add ca-certificates
COPY --from=0 /smartdns-x86_64 /smartdns
ENTRYPOINT [ "/smartdns" ]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment