mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-23 04:12:46 +02:00
add coredns
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
198c76d938
commit
f59c31059a
33
coredns/Dockerfile
Normal file
33
coredns/Dockerfile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
ca-certificates
|
||||||
|
|
||||||
|
ENV COREDNS_VERSION v1.0.2
|
||||||
|
|
||||||
|
RUN buildDeps=' \
|
||||||
|
go \
|
||||||
|
git \
|
||||||
|
gcc \
|
||||||
|
g++ \
|
||||||
|
libc-dev \
|
||||||
|
libgcc \
|
||||||
|
make \
|
||||||
|
' \
|
||||||
|
set -x \
|
||||||
|
&& apk --no-cache add $buildDeps \
|
||||||
|
&& git clone --depth 1 --branch ${COREDNS_VERSION} https://github.com/coredns/coredns /go/src/github.com/coredns/coredns \
|
||||||
|
&& cd /go/src/github.com/coredns/coredns \
|
||||||
|
&& make \
|
||||||
|
&& mv coredns /usr/bin/coredns \
|
||||||
|
&& apk del $buildDeps \
|
||||||
|
&& rm -rf /go \
|
||||||
|
&& echo "Build complete."
|
||||||
|
|
||||||
|
|
||||||
|
ENTRYPOINT [ "coredns" ]
|
||||||
|
CMD [ "--help" ]
|
@ -61,6 +61,7 @@ atom/atom
|
|||||||
camlistore/camlistore
|
camlistore/camlistore
|
||||||
certbot/certbot
|
certbot/certbot
|
||||||
hashicorp/consul
|
hashicorp/consul
|
||||||
|
coredns/coredns
|
||||||
CouchPotato/CouchPotatoServer
|
CouchPotato/CouchPotatoServer
|
||||||
curl/curl
|
curl/curl
|
||||||
google/guetzli
|
google/guetzli
|
||||||
|
@ -18,7 +18,6 @@ RUN buildDeps=' \
|
|||||||
libc-dev \
|
libc-dev \
|
||||||
libgcc \
|
libgcc \
|
||||||
make \
|
make \
|
||||||
zip \
|
|
||||||
' \
|
' \
|
||||||
set -x \
|
set -x \
|
||||||
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
|
&& apk --no-cache add --repository https://dl-3.alpinelinux.org/alpine/edge/community $buildDeps \
|
||||||
@ -26,10 +25,11 @@ RUN buildDeps=' \
|
|||||||
&& git clone --depth 1 --branch ${TERRAFORM_VERSION} https://github.com/hashicorp/terraform /go/src/github.com/hashicorp/terraform \
|
&& git clone --depth 1 --branch ${TERRAFORM_VERSION} https://github.com/hashicorp/terraform /go/src/github.com/hashicorp/terraform \
|
||||||
&& cd /go/src/github.com/hashicorp/terraform \
|
&& cd /go/src/github.com/hashicorp/terraform \
|
||||||
&& XC_ARCH="amd64" XC_OS="linux" make bin \
|
&& XC_ARCH="amd64" XC_OS="linux" make bin \
|
||||||
&& mv pkg/linux_amd64/terraform /usr/bin/ \
|
&& mv bin/terraform /usr/bin/terraform \
|
||||||
&& apk del $buildDeps \
|
&& apk del $buildDeps \
|
||||||
&& rm -rf /go \
|
&& rm -rf /go \
|
||||||
&& echo "Build complete."
|
&& echo "Build complete."
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT [ "terraform" ]
|
ENTRYPOINT [ "terraform" ]
|
||||||
|
CMD [ "--help" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user