Commit db26dbcf authored by zauberstuhl's avatar zauberstuhl
Browse files

Add DNS failover image

parent 93761156
Pipeline #2181 passed with stages
in 2 minutes and 55 seconds
FROM golang:1.12
ENV build_dir=/go/src/
WORKDIR $build_dir
RUN git clone
WORKDIR $build_dir/dns-failover
RUN go get -u
RUN dep ensure
RUN go build -o /tmp/dns-failover
FROM alpine:3.9
# install certificates
RUN apk update
RUN apk add ca-certificates
RUN rm -rf /var/cache/apk/*
RUN mkdir -p /home/dnsf
COPY --from=0 /tmp/dns-failover /home/dnsf/dns-failover
RUN chmod +x /home/dnsf/dns-failover
RUN chmod +x /
WORKDIR /home/dnsf
if [ "$CONFIG" != "" ]; then
echo -ne "$CONFIG" > $appconf
if [ "$CONFIG_FILE" != "" ]; then
cp -v $CONFIG_FILE $appconf
/home/dnsf/dns-failover $@
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