forked from jmhodges/howsmyssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (22 loc) · 862 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
FROM golang:1.10
EXPOSE 10080
EXPOSE 10443
ADD . /go/src/github.com/jmhodges/howsmyssl
RUN go install github.com/jmhodges/howsmyssl
# Provided by kubernetes secrets or some such
VOLUME "/secrets"
RUN chown -R www-data /go/src/github.com/jmhodges/howsmyssl
USER www-data
CMD ["/bin/bash", "-c", "howsmyssl \
-httpsAddr=:10443 \
-httpAddr=:10080 \
-adminAddr=:4567 \
-templateDir=/go/src/github.com/jmhodges/howsmyssl/templates \
-staticDir=/go/src/github.com/jmhodges/howsmyssl/static \
-vhost=www.howsmyssl.com \
-acmeRedirect=$ACME_REDIRECT_URL \
-allowListsFile=/etc/howsmyssl-allowlists/allow_lists.json \
-googAcctConf=/secrets/howsmyssl-logging-svc-account/howsmyssl-logging.json \
-allowLogName=howsmyssl_allowance_checks \
-cert=/secrets/howsmyssl-tls/tls.crt \
-key=/secrets/howsmyssl-tls/tls.key"]