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)