Dockerfile 701 B
Newer Older
FROM gekkofs/core:0.9.1
Ramon Nou's avatar
Ramon Nou committed

LABEL Description="Debian-based environment to check the formatting of GekkoFS code"

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
		# clang 10 deps for clang-format
		lsb-release \
		wget \
		software-properties-common \
		gnupg2 && \
    # add clang-10 repos
    wget https://apt.llvm.org/llvm.sh -P /tmp && chmod +x /tmp/llvm.sh && /tmp/llvm.sh 11 && \
Ramon Nou's avatar
Ramon Nou committed
    # install clang-format
    apt-get update && apt-get install -y --no-install-recommends clang-format-11 && \
Ramon Nou's avatar
Ramon Nou committed
    # Clean apt cache to reduce image layer size
    rm -rf /var/lib/apt/lists/* && rm /tmp/llvm.sh && \
    # Clean apt caches of packages
    apt-get clean && apt-get autoclean