mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 02:17:47 +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
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
| # syntax = docker/dockerfile:1.0-experimental
 | |
| ARG docker_repo=zokradonh
 | |
| FROM ${docker_repo}/kopano_base
 | |
| 
 | |
| ARG ADDITIONAL_KOPANO_PACKAGES=""
 | |
| ARG DOWNLOAD_COMMUNITY_PACKAGES=1
 | |
| ARG KOPANO_REPOSITORY_FLAGS="trusted=yes"
 | |
| ARG RELEASE_KEY_DOWNLOAD=0
 | |
| ARG DEBIAN_FRONTEND=noninteractive
 | |
| ARG KOPANO_CORE_REPOSITORY_URL="file:/kopano/repo/core"
 | |
| ARG KOPANO_CORE_VERSION=newest
 | |
| 
 | |
| ENV \
 | |
|     ADDITIONAL_KOPANO_PACKAGES=$ADDITIONAL_KOPANO_PACKAGES \
 | |
|     DOWNLOAD_COMMUNITY_PACKAGES=$DOWNLOAD_COMMUNITY_PACKAGES \
 | |
|     KOPANO_CORE_REPOSITORY_URL=$KOPANO_CORE_REPOSITORY_URL \
 | |
|     KOPANO_CORE_VERSION=$KOPANO_CORE_VERSION \
 | |
|     KOPANO_REPOSITORY_FLAGS=$KOPANO_REPOSITORY_FLAGS \
 | |
|     RELEASE_KEY_DOWNLOAD=$RELEASE_KEY_DOWNLOAD
 | |
| 
 | |
| LABEL maintainer=az@zok.xyz \
 | |
|     org.label-schema.name="Kopano Python container" \
 | |
|     org.label-schema.description="Container for running python based applications for 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"
 | |
| 
 | |
| SHELL ["/bin/bash", "-o", "pipefail", "-c"]
 | |
| 
 | |
| # hadolint ignore=SC2215
 | |
| RUN --mount=type=secret,id=repocred,dst=/etc/apt/apt_auth.conf \
 | |
|     echo "deb [${KOPANO_REPOSITORY_FLAGS}] ${KOPANO_CORE_REPOSITORY_URL} ./" > /etc/apt/sources.list.d/kopano.list; \
 | |
|     # install
 | |
|     set -x && \
 | |
|     apt-get update && apt-get install -y --no-install-recommends \
 | |
|         python3-kopano \
 | |
|         ${ADDITIONAL_KOPANO_PACKAGES} \
 | |
|     && rm -rf /var/cache/apt /var/lib/apt/lists
 | |
| 
 | |
| ARG VCS_REF
 | |
| LABEL org.label-schema.vcs-ref=$VCS_REF |