Use updated golang version in dockerfile#3202
Conversation
|
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates the Golang installation in the Dockerfile from the outdated apt package (v1.19) to a direct download of v1.25 from the Go website to meet sandcat's minimum version requirement of v1.24. It also fixes a bug where the update-agents.sh script contents were being wiped during the Docker build process.
- Downloads and installs Golang v1.25 directly from the official Go website
- Fixes the update-agents.sh script corruption issue by creating a backup before processing
- Removes the outdated golang-go package from apt installation
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|



Description
Dockerfile currently installs golang using apt, which only provides golang v1.19. To meet sandcat's minimum version of v1.24, the new Dockerfile will download and install golang v1.25 directly from the Go website.
Also fixes a bug where update-agents.sh contents are wiped during docker build.
Type of change
How Has This Been Tested?
Built docker locally and compiled agents using the update-agents.sh script
Checklist: