1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-21 05:13:22 +00:00

use onbuild to specify building of core repository only in one place

remove ca-certificates and git from kdav image

git should not be needed since kdav has a builder stage
ca-certificates is already installed in an earlier stage

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels
2019-10-11 14:05:47 +02:00
parent afce634efa
commit 4028b53c78
6 changed files with 11 additions and 28 deletions
+8
View File
@@ -77,3 +77,11 @@ COPY create-kopano-repo.sh /kopano/helper/
COPY kcconf.py /kopano/
SHELL [ "/bin/bash", "-c"]
ONBUILD ARG DOWNLOAD_COMMUNITY_PACKAGES=1
ONBUILD RUN \
# community download and package as apt source repository
. /kopano/helper/create-kopano-repo.sh && \
if [ ${DOWNLOAD_COMMUNITY_PACKAGES} -eq 1 ]; then \
dl_and_package_community "core" "Debian_10"; \
fi;