mirror of
https://github.com/Icinga/docker-icinga2.git
synced 2026-04-03 03:11:03 +02:00
Rationale: for security reasons include the latest deps, at least in release images. Therefore include them everywhere, so the CI warns early enough.
45 lines
1.4 KiB
Docker
45 lines
1.4 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 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
|
|
|
|
COPY action.bash compile.bash Dockerfile /
|
|
COPY entrypoint /entrypoint
|
|
|
|
CMD ["/action.bash"]
|