[download-web/mirrorbits] Install templates into the final image



commit af653cf164a4683b2dfea9a0d72f714b34a821b0
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Dec 7 18:07:42 2020 +0100

    Install templates into the final image

 Dockerfile      | 1 +
 mirrorbits.conf | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/Dockerfile b/Dockerfile
index c965850..0e5f6f9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,6 +21,7 @@ RUN apt-get update -y && \
 
 COPY --from=builder /go/bin/geoipupdate /usr/local/bin/
 COPY --from=builder /go/mirrorbits/bin/mirrorbits /usr/local/bin/
+COPY --from=builder /go/mirrorbits/templates /usr/share/mirrorbits/templates
 
 RUN install -d /usr/share/GeoIP /srv/ftp
 ADD entrypoint.sh /entrypoint.sh
diff --git a/mirrorbits.conf b/mirrorbits.conf
index 4821918..34d804e 100644
--- a/mirrorbits.conf
+++ b/mirrorbits.conf
@@ -1,5 +1,6 @@
 Repository: /srv/ftp
 RedisAddress: redis.download-web.svc.cluster.local:6379
+Templates: /usr/share/mirrorbits/templates
 
 ## A local path or URL containing the JavaScript used by the templates.
 ## If this is not set (the default), the JavaScript will just be loaded


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]