mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-10 09:26:14 +00:00
* add todo for docker wait * add makefile target to scan containers with trivy * pin version of trivy in travis file * add trivy cache to persistent storage of travis (commented since not part of ci for the moment) * reorg travis file + remove goss as it is not used * add a fixed version for the base image * add file with tags to gitignore * introduce tag-all target * remove after_failure step * add ignore file for trivy * store the tag for the builder as well * remove tag_file after completing scans * replace manual build and publish commands with generated ones * update kdav builder to resolve CVE-2019-3855 * ignore CVE-2019-3855 which is thrown in kdav build container * exclude the build-webapp-demo from build-all
54 lines
1.5 KiB
Docker
54 lines
1.5 KiB
Docker
FROM debian:stretch
|
|
|
|
LABEL maintainer=az@zok.xyz \
|
|
version="2.0"
|
|
|
|
ENV BASE_VERSION=1.0
|
|
|
|
RUN mkdir -p /kopano/repo /kopano/data /kopano/helper /kopano/path
|
|
WORKDIR /kopano/repo
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
# install basics
|
|
# TODO require python3 or python3-minimal?
|
|
# hadolint ignore=DL3005
|
|
RUN apt-get update && \
|
|
apt-get upgrade -y && \
|
|
apt-get install --no-install-recommends -y \
|
|
apt-transport-https \
|
|
apt-utils \
|
|
ca-certificates \
|
|
curl \
|
|
dumb-init \
|
|
gpg \
|
|
jq \
|
|
locales \
|
|
moreutils \
|
|
python3 \
|
|
&& \
|
|
rm -rf /var/cache/apt /var/lib/apt/lists/*
|
|
|
|
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
|
sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
|
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
|
update-locale LANG=en_US.UTF-8
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
|
RUN curl -L https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | tar xzvf - -C /usr/local/bin
|
|
|
|
ARG ADDITIONAL_KOPANO_PACKAGES=""
|
|
ARG DOWNLOAD_COMMUNITY_PACKAGES=1
|
|
ARG KOPANO_CORE_REPOSITORY_URL="file:/kopano/repo/core"
|
|
ARG KOPANO_CORE_VERSION=newest
|
|
ARG KOPANO_REPOSITORY_FLAGS="trusted=yes"
|
|
ARG RELEASE_KEY_DOWNLOAD=0
|
|
|
|
# get common utilities
|
|
COPY create-kopano-repo.sh /kopano/helper/
|
|
COPY kcconf.py /kopano/
|
|
RUN echo $BASE_VERSION > /kopano/buildversion
|
|
|
|
SHELL [ "/bin/bash", "-c"]
|