mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01: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
|
||||
certbot/certbot
|
||||
hashicorp/consul
|
||||
coredns/coredns
|
||||
CouchPotato/CouchPotatoServer
|
||||
curl/curl
|
||||
google/guetzli
|
||||
|
|
|
@ -18,7 +18,6 @@ RUN buildDeps=' \
|
|||
libc-dev \
|
||||
libgcc \
|
||||
make \
|
||||
zip \
|
||||
' \
|
||||
set -x \
|
||||
&& 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 \
|
||||
&& cd /go/src/github.com/hashicorp/terraform \
|
||||
&& XC_ARCH="amd64" XC_OS="linux" make bin \
|
||||
&& mv pkg/linux_amd64/terraform /usr/bin/ \
|
||||
&& mv bin/terraform /usr/bin/terraform \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /go \
|
||||
&& echo "Build complete."
|
||||
|
||||
|
||||
ENTRYPOINT [ "terraform" ]
|
||||
CMD [ "--help" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user