Skip to content

Commit

Permalink
chore: update Dockerfile to use Go 1.23.4 and enhance build logging
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
tphakala committed Jan 16, 2025
1 parent d0dc27b commit c70b111
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c70b111

Please sign in to comment.