From c70b11108a319f15e56da0e1f92bd9feb04f24b2 Mon Sep 17 00:00:00 2001 From: "Tomi P. Hakala" Date: Thu, 16 Jan 2025 16:38:29 +0200 Subject: [PATCH] chore: update Dockerfile to use Go 1.23.4 and enhance build logging - Updated the base image in the Dockerfile from golang:1.23.2 to golang:1.23.4 for improved performance and security. - Added logging statements to the TensorFlow Lite library download step to provide better visibility into the build process, including the target platform and library archive being used. These changes aim to enhance the build process and ensure the use of the latest Go version. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8024a8e9..12aba52a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG TFLITE_LIB_DIR=/usr/lib -FROM --platform=$BUILDPLATFORM golang:1.23.2-bookworm AS buildenv +FROM --platform=$BUILDPLATFORM golang:1.23.4-bookworm AS buildenv # Install zip utility along with other dependencies RUN apt-get update && apt-get install -y \ @@ -32,7 +32,9 @@ RUN make check-tensorflow # Download and configure precompiled TensorFlow Lite C library ARG TARGETPLATFORM ARG TFLITE_LIB_DIR -RUN TFLITE_LIB_ARCH=$(echo ${TARGETPLATFORM} | tr '/' '_').tar.gz \ +RUN TFLITE_LIB_ARCH=$(echo ${TARGETPLATFORM} | tr '/' '_').tar.gz && \ + echo "Building for platform: ${TARGETPLATFORM}" && \ + echo "Using library archive: ${TFLITE_LIB_ARCH}" && \ make download-tflite FROM --platform=$BUILDPLATFORM buildenv AS build