-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 1.14 KB
/
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
FROM golang:1.13 as builder
LABEL protos="0.0.1" \
protos.installer.metadata.description="This applications provides the capability to interact with the Namecheap API" \
protos.installer.metadata.params="api_user,api_token,username" \
protos.installer.metadata.capabilities="ResourceProvider,InternetAccess,GetInformation" \
protos.installer.metadata.provides="dns"
ADD . "/go/src/namecheap-dns/"
WORKDIR "/go/src/namecheap-dns"
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build namecheap-dns.go
FROM alpine:latest
LABEL protos="0.0.1" \
protos.installer.metadata.name="namecheap-dns" \
protos.installer.metadata.description="This applications provides the capability to interact with the Namecheap API" \
protos.installer.metadata.params="api_user,api_token,username" \
protos.installer.metadata.capabilities="ResourceProvider,InternetAccess,GetInformation" \
protos.installer.metadata.provides="dns"
COPY --from=builder /go/src/namecheap-dns/namecheap-dns /root/
COPY --from=builder /go/src/namecheap-dns/start.sh /root/
RUN apk add ca-certificates
RUN chmod +x /root/start.sh
ENTRYPOINT ["/root/start.sh"]