-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (24 loc) · 1.45 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
26
27
28
FROM golang:1.13.3 as builder
LABEL protos="0.0.1" \
protos.installer.metadata.name="letsencrypt-certificate" \
protos.installer.metadata.description="This applications provides SSL certificates using the letsencrypt.com service. " \
protos.installer.metadata.capabilities="ResourceProvider,ResourceConsumer,InternetAccess,GetInformation" \
protos.installer.metadata.requires="dns" \
protos.installer.metadata.provides="certificate" \
protos.installer.metadata.name="letsencrypt-certificate"
ADD . "/go/src/letsencrypt-certificate/"
WORKDIR "/go/src/letsencrypt-certificate/"
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build letsencrypt-certificate.go
FROM alpine:latest
LABEL protos="0.0.1" \
protos.installer.metadata.name="letsencrypt-certificate" \
protos.installer.metadata.description="This applications provides SSL certificates using the letsencrypt.com service. " \
protos.installer.metadata.capabilities="ResourceProvider,ResourceConsumer,InternetAccess,GetInformation" \
protos.installer.metadata.requires="dns" \
protos.installer.metadata.provides="certificate" \
protos.installer.metadata.name="letsencrypt-certificate"
RUN apk add ca-certificates
COPY --from=builder /go/src/letsencrypt-certificate/letsencrypt-certificate /usr/bin/
RUN chmod +x /usr/bin/letsencrypt-certificate
ENTRYPOINT ["/usr/bin/letsencrypt-certificate"]
CMD ["--loglevel", "debug", "--interval", "20", "--staging", "start"]