forked from raystack/guardian
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
21 lines (14 loc) · 895 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alpine:3.13
RUN apk add curl
RUN apk add openssl
RUN apk add --no-cache ca-certificates && update-ca-certificates
# odps package has an unhandled (panicking) error that requires this pkg to be installed to avoid the panic:
# https://github.com/aliyun/aliyun-odps-go-sdk/blob/master/odps/restclient/rest_client.go#L171
# https://github.com/aliyun/aliyun-odps-go-sdk/blob/master/odps/common/http_const.go#L38
RUN apk --no-cache add tzdata
RUN curl --output /usr/local/share/ca-certificates/SectigoRSADomainValidationSecureServerCA.crt http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt
RUN openssl x509 -inform DER -in /usr/local/share/ca-certificates/SectigoRSADomainValidationSecureServerCA.crt -out /usr/local/share/ca-certificates/SectigoRSADomainValidationSecureServerCA.pem -text
RUN update-ca-certificates
COPY guardian .
EXPOSE 8080
ENTRYPOINT ["./guardian"]