aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-14 22:38:02 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-14 22:38:02 +0100
commit9bfd7f8d516ddf59973f671397bd7b34099c784f (patch)
treee466f3a60fd8b0844a57a78b64f1a7c6129431dc
parent3dca3a2e3324b3198fc80878761b77f3502eff3d (diff)
downloadguichet-9bfd7f8d516ddf59973f671397bd7b34099c784f.tar.gz
guichet-9bfd7f8d516ddf59973f671397bd7b34099c784f.zip
Add SSL certs to container for SMTP STARTTLS
-rw-r--r--Dockerfile5
-rw-r--r--guichet.hcl.example2
2 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 05efce0..69f7f3a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,10 @@
+FROM alpine:latest as certs
+RUN apk --update add ca-certificates
+
FROM scratch
+COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
+
ADD static /static
ADD guichet.static /guichet
ADD templates /templates
diff --git a/guichet.hcl.example b/guichet.hcl.example
index 740ab23..3136956 100644
--- a/guichet.hcl.example
+++ b/guichet.hcl.example
@@ -12,7 +12,7 @@ job "guichet" {
task "server" {
driver = "docker"
config {
- image = "lxpz/guichet_amd64:6"
+ image = "lxpz/guichet_amd64:7"
readonly_rootfs = true
port_map {
web_port = 9991