Change image build process

This commit is contained in:
Victor Carlos Erenu
2026-04-28 20:48:45 +07:00
parent 2131887019
commit 2a49af4249
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -27,10 +27,8 @@ RUN RPM_ARCH="x86_64" && \
sed -i '/<authorization_pass_path>/d' /var/ossec/etc/ossec.conf
# Download tini static binary (no external library dependencies)
RUN TINI_ARCH="amd64" && \
if [ "${TARGETARCH}" = "arm64" ]; then TINI_ARCH="arm64"; fi && \
curl --fail --silent -L \
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_ARCH} \
RUN curl --fail --silent -L \
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TARGETARCH} \
-o /usr/local/bin/tini && \
chmod +x /usr/local/bin/tini
+2 -4
View File
@@ -42,10 +42,8 @@ RUN chmod 755 /permanent_data.sh && \
sync && rm /permanent_data.sh
# Download tini static binary (no external library dependencies)
RUN TINI_ARCH="amd64" && \
if [ "${TARGETARCH}" = "arm64" ]; then TINI_ARCH="arm64"; fi && \
curl --fail --silent -L \
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TINI_ARCH} \
RUN curl --fail --silent -L \
https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static-${TARGETARCH} \
-o /usr/local/bin/tini && \
chmod +x /usr/local/bin/tini