docker-icinga2/action-base.Dockerfile
Alexander A. Klimov 5462f6fbfb Integrate jemalloc
2021-04-12 14:36:52 +02:00

40 lines
1.3 KiB
Docker

# Icinga 2 Docker image | (c) 2020 Icinga GmbH | GPLv2+
FROM buildpack-deps:scm as clone
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
RUN mkdir actions ;\
cd actions ;\
git clone --bare https://github.com/actions/checkout.git ;\
git -C checkout.git archive --prefix=checkout/ v2 |tar -x ;\
git clone --bare https://github.com/actions/cache.git ;\
git -C cache.git archive --prefix=cache/ v2 |tar -x ;\
rm -rf *.git
FROM debian:buster-slim
SHELL ["/bin/bash", "-exo", "pipefail", "-c"]
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update ;\
apt-get install --no-install-{recommends,suggests} -y \
apt-transport-https gnupg2 dirmngr ca-certificates ;\
apt-get clean ;\
rm -vrf /var/lib/apt/lists/* ;\
apt-key adv --fetch-keys https://download.docker.com/linux/debian/gpg ;\
apt-get purge -y gnupg2 dirmngr ;\
apt-get autoremove --purge -y
ADD action-base.list /etc/apt/sources.list.d/misc.list
RUN apt-get update ;\
apt-get install --no-install-{recommends,suggests} -y \
bison cmake docker-ce-cli flex g++ git \
libboost{,-{context,coroutine,date-time,filesystem,program-options,regex,system,thread}}1.67-dev \
libedit-dev libjemalloc-dev libmariadbclient-dev libpq-dev libssl-dev make nodejs ;\
apt-get install --no-install-{recommends,suggests} -y ccache ;\
apt-get clean ;\
rm -vrf /var/lib/apt/lists/*
COPY --from=clone /actions /actions