bugfix:修改dns容器编译失败问题

This commit is contained in:
fumingwei
2021-10-14 11:36:36 +08:00
parent 5ed6a5b1eb
commit 33f5659cbd
2 changed files with 5 additions and 6 deletions

View File

@@ -1,14 +1,13 @@
FROM alpine:latest as builder
FROM alpine:edge
RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
LABEL maintainer="dev@jpillora.com"
# webproc release settings
ENV WEBPROC_VERSION 0.2.2
ENV WEBPROC_URL https://github.com/jpillora/webproc/releases/download/$WEBPROC_VERSION/webproc_linux_amd64.gz
LABEL maintainer="TSG"
ADD webproc_linux_amd64.gz /tmp/
# fetch dnsmasq and webproc binary
RUN apk update \
&& apk --no-cache add dnsmasq \
&& apk add --no-cache --virtual .build-deps curl \
&& curl -sL $WEBPROC_URL | gzip -d - > /usr/local/bin/webproc \
&& gzip -cd /tmp/webproc_linux_amd64.gz > /usr/local/bin/webproc \
&& rm /tmp/webproc_linux_amd64.gz \
&& chmod +x /usr/local/bin/webproc \
&& apk del .build-deps
#configure dnsmasq

Binary file not shown.