-
Notifications
You must be signed in to change notification settings - Fork 191
/
Dockerfile
33 lines (26 loc) · 638 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM golang:1.20.5-alpine as build
RUN apk add --no-cache git tar
WORKDIR /go/src/github.com/abh/geodns
ENV CGO_ENABLED=0
ADD applog/ applog/
ADD countries/ countries/
ADD geodns-logs/ geodns-logs/
ADD health/ health/
ADD monitor/ monitor/
ADD querylog/ querylog/
ADD server/ server/
ADD targeting/ targeting/
ADD typeutil/ typeutil/
ADD zones/ zones/
ADD service/ service/
ADD service-logs/ service-logs/
ADD .git/ .git/
ADD *.go build ./
RUN ./build
RUN ls -l
RUN ls -l dist
RUN ln dist/* /
FROM scratch
COPY --from=build /geodns-linux-amd64 /geodns
COPY --from=build /geodns-logs-linux-amd64 /geodns-logs
ENTRYPOINT ["/geodns"]