Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Optimize Core containers

aapanel.com84e56f5e04cb
diff --git a/Dockerfiles/core/Dockerfile b/Dockerfiles/core/Dockerfile
index 5c73117e..d04c18d7 100644
--- a/Dockerfiles/core/Dockerfile
+++ b/Dockerfiles/core/Dockerfile
@@ -14,7 +14,6 @@ COPY core/manifest /opt/billionmail/core/manifest
COPY core/languages /opt/billionmail/core/languages
COPY core/public /opt/billionmail/core/public
COPY core/resource /opt/billionmail/core/resource
-COPY core/template /opt/billionmail/core/template
# Copy file
# COPY repositories /etc/apk/repositories
diff --git a/Dockerfiles/core/core.sh b/Dockerfiles/core/core.sh
index b991e3df..db64aabe 100644
--- a/Dockerfiles/core/core.sh
+++ b/Dockerfiles/core/core.sh
@@ -55,6 +55,10 @@ fi
# fi
cp -rf /opt/billionmail/conf/core/fail2ban_init/filter.d/*.conf /etc/fail2ban/filter.d/
+if [ ! -d "/opt/billionmail/core/template/" ]; then
+ mkdir /opt/billionmail/core/template
+fi
+
if [ ! -d "/opt/billionmail/core/logs/" ]; then
mkdir /opt/billionmail/core/logs
fi