forked from wazuh/wazuh-docker
Change image build process
This commit is contained in:
@@ -27,10 +27,8 @@ RUN RPM_ARCH="x86_64" && \
|
|||||||
sed -i '/<authorization_pass_path>/d' /var/ossec/etc/ossec.conf
|
sed -i '/<authorization_pass_path>/d' /var/ossec/etc/ossec.conf
|
||||||
|
|
||||||
# Download tini static binary (no external library dependencies)
|
# Download tini static binary (no external library dependencies)
|
||||||
RUN TINI_ARCH="amd64" && \
|
RUN curl --fail --silent -L \
|
||||||
if [ "${TARGETARCH}" = "arm64" ]; then TINI_ARCH="arm64"; fi && \
|
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TARGETARCH} \
|
||||||
curl --fail --silent -L \
|
|
||||||
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_ARCH} \
|
|
||||||
-o /usr/local/bin/tini && \
|
-o /usr/local/bin/tini && \
|
||||||
chmod +x /usr/local/bin/tini
|
chmod +x /usr/local/bin/tini
|
||||||
|
|
||||||
|
|||||||
@@ -42,10 +42,8 @@ RUN chmod 755 /permanent_data.sh && \
|
|||||||
sync && rm /permanent_data.sh
|
sync && rm /permanent_data.sh
|
||||||
|
|
||||||
# Download tini static binary (no external library dependencies)
|
# Download tini static binary (no external library dependencies)
|
||||||
RUN TINI_ARCH="amd64" && \
|
RUN curl --fail --silent -L \
|
||||||
if [ "${TARGETARCH}" = "arm64" ]; then TINI_ARCH="arm64"; fi && \
|
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TARGETARCH} \
|
||||||
curl --fail --silent -L \
|
|
||||||
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_ARCH} \
|
|
||||||
-o /usr/local/bin/tini && \
|
-o /usr/local/bin/tini && \
|
||||||
chmod +x /usr/local/bin/tini
|
chmod +x /usr/local/bin/tini
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user