<#5926 Update Dockerfile> Pull request opened by <...
# flyte-github
c
#5926 Update Dockerfile Pull request opened by PentesterPriyanshu these changes help make the build faster by optimizing Docker's layer caching Setting TARGETARCH=amd64 as a default ensures that the build does not fai Summary of Changes • Set a default architecture fallback (
TARGETARCH=amd64
). • Improved caching mechanism for Go modules by separating the
go mod download
step from the build process.## Background The previous Dockerfiles used an outdated Alpine version (3.13.5), which may lack important security updates and features. The updates aim to enhance performance, ensure compatibility with the latest dependencies, and improve overall security. Why are the changes needed? • The base image has been updated to
alpine:latest
to ensure we are using the most recent stable version with the latest security patches and improvements. • Improved handling of architecture-specific builds for better robustness and maintainability. • Removed unnecessary commands and streamlined the installation process to make the builds faster and more efficient. What changes were proposed in this pull request? Summary of Changes • Updated base image to
alpine:latest
. • Enhanced architecture handling in the Dockerfile. • Cleaned up unnecessary dependencies and added missing ones (e.g.,
wget
,
bash
). • Consolidated installation scripts for Helm and Flytectl to ensure they work seamlessly with the new Alpine version. How was this patch tested? Testing Environment • OS: Ubuntu 24 • Docker version: 20.10.14 Setup process 1. Built the Docker images using the updated Dockerfiles. 2. Ran the containers to verify that all services started correctly without errors. 3. Executed functional tests on the Flyte application to ensure everything operates as expected. Screenshots Check all the applicable boxes • I updated the documentation accordingly. • Documentation changes are reflected in the project docs. • All new and existing tests passed. • All commits are signed-off. Docs link • <link_to_build_docs|Build documentation> - Updated to reflect changes in Dockerfile structure and dependencies. flyteorg/flyte