From d134d002e948cfb4d15b47aaf940d7822f6189b4 Mon Sep 17 00:00:00 2001 From: George Tsigourakos Date: Thu, 8 Feb 2024 19:41:49 +0200 Subject: [PATCH] Move things around in Dockerfile --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index e92f9a2..c8f707e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,19 +24,19 @@ RUN chmod -R 755 /var/log/crowdstrike/falconhoseclient WORKDIR "${WORKDIR}" -# CrowdStrike deb package +# Copy entrypoint +COPY entrypoint.sh "${WORKDIR}" +RUN chmod +x "${WORKDIR}/entrypoint.sh" + +# Copy CrowdStrike deb package COPY deb/crowdstrike-cs-falconhoseclient_2.18.0_amd64.deb "${WORKDIR}/crowdstrike.deb" RUN dpkg -i "${WORKDIR}/crowdstrike.deb" -# Link the binary executable to /usr/bin +# Link the binary executables to /usr/bin RUN ln -s /opt/crowdstrike/bin/cs.falconhoseclient /usr/bin/cs.falconhoseclient RUN ln -s "${WORKDIR}/entrypoint.sh" /usr/bin/falconhoseclient -# Entrypoint -COPY entrypoint.sh "${WORKDIR}" -RUN chmod +x "${WORKDIR}/entrypoint.sh" - -# CrowdStrike configuration file +# Copy CrowdStrike configuration file COPY cfg/cs.falconhoseclient.cfg.template "${WORKDIR}" # Environment setup (if defined the values are used in the entrypoint)