2021-01-17 08:28:20 -06:00
|
|
|
FROM arm64v8/golang:1.15.6 AS builder
|
2020-10-08 15:14:07 -05:00
|
|
|
RUN apt install git -y
|
|
|
|
RUN mkdir -p /go/src/zabov
|
|
|
|
RUN git clone https://git.keinpfusch.net/loweel/zabov /go/src/zabov
|
|
|
|
WORKDIR /go/src/zabov
|
|
|
|
ENV GO111MODULE=auto
|
|
|
|
RUN go get ; go build -mod=vendor
|
|
|
|
|
|
|
|
FROM debian:latest
|
|
|
|
RUN apt update
|
|
|
|
RUN apt upgrade -y
|
|
|
|
RUN apt install ca-certificates -y
|
2021-01-15 17:11:54 -06:00
|
|
|
RUN apt install tzdata -y
|
2020-10-08 15:14:07 -05:00
|
|
|
RUN mkdir -p /opt/zabov
|
|
|
|
WORKDIR /opt/zabov
|
|
|
|
COPY --from=builder /go/src/zabov /opt/zabov
|
|
|
|
EXPOSE 53/udp
|
2021-01-15 17:11:54 -06:00
|
|
|
ENV TZ Europe/Rome
|
2020-10-08 15:14:07 -05:00
|
|
|
ENTRYPOINT ["/opt/zabov/zabov"]
|