bugfix:修改dns容器编译失败问题
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
images_build/server_dns/webproc_linux_amd64.gz
Normal file
BIN
images_build/server_dns/webproc_linux_amd64.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user