From d7aeda39abc1228fa7596ad5890bc31c6f6ba632 Mon Sep 17 00:00:00 2001 From: Shicong Nie Date: Wed, 25 Sep 2024 22:07:01 +0800 Subject: [PATCH] fix: tmp --- build.sh | 17 +++++++++-------- docker/Dockerfile.runner | 3 ++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index f1b795d..2c95b32 100755 --- a/build.sh +++ b/build.sh @@ -6,14 +6,15 @@ set -e # For Go. -# echo "Building for Go..." -# pushd go -# wget -q https://go.dev/dl/go1.22.3.linux-amd64.tar.gz -# rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz && rm -f go1.22.3.linux-amd64.tar.gz -# export PATH=$PATH:/usr/local/go/bin -# go mod tidy -# go build -# popd +echo "Building for Go..." +ls +pushd go +wget -q https://go.dev/dl/go1.22.3.linux-amd64.tar.gz +rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.3.linux-amd64.tar.gz && rm -f go1.22.3.linux-amd64.tar.gz +export PATH=$PATH:/usr/local/go/bin +go mod tidy +go build +popd # For Python. echo "Building for Python..." diff --git a/docker/Dockerfile.runner b/docker/Dockerfile.runner index b763756..9a6a1f7 100644 --- a/docker/Dockerfile.runner +++ b/docker/Dockerfile.runner @@ -10,7 +10,8 @@ RUN TZ=Asia/Shanghai DEBIAN_FRONTEND=noninteractive apt-get -y update && \ wget \ curl \ jq \ - make && \ + make \ + gcc && \ make build && \ apt-get remove -y --auto-remove wget curl && \ apt-get clean && \