mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 07:56:12 +00:00
* sort .gitignore and add apt_auth.conf to it * add helper to setup.sh to create apt_auth.conf (user still needs to enter their own credentials) * only create apt_auth.conf in make if it doesn't already exist * add tooling to core dockerfile and makefile to use build secrets * add ignore for hadolint as mounting syntax is currently not supported so far * update to latest docker on travis for buildkit support * documentation * sort gitignore * add dockerfile syntax definition for build args
34 lines
989 B
Docker
34 lines
989 B
Docker
# syntax = docker/dockerfile:1.0-experimental
|
|
ARG docker_repo=zokradonh
|
|
FROM ${docker_repo}/kopano_core
|
|
|
|
LABEL maintainer=az@zok.xyz \
|
|
org.label-schema.name="Kopano utils container" \
|
|
org.label-schema.description="Container that bundles various cli tools from Kopano Groupware Core" \
|
|
org.label-schema.url="https://kopano.io" \
|
|
org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \
|
|
org.label-schema.version=$KOPANO_CORE_VERSION \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
# hadolint ignore=SC2215
|
|
RUN --mount=type=secret,id=repocred,dst=/etc/apt/apt_auth.conf \
|
|
apt-get update && apt-get install --no-install-recommends -y \
|
|
git \
|
|
iputils-ping \
|
|
kopano-backup \
|
|
kopano-migration-imap \
|
|
kopano-migration-pst \
|
|
ldap-utils \
|
|
less \
|
|
lsof \
|
|
man \
|
|
nano \
|
|
net-tools \
|
|
vim \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
CMD [ "/bin/bash" ]
|
|
|
|
ARG VCS_REF
|
|
LABEL org.label-schema.vcs-ref=$VCS_REF |