From 0b2c39ea8f6a73788efe33613669f7319d95b9ef Mon Sep 17 00:00:00 2001 From: PuzzleMoon <32855965+puzzlemoondev@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:36:18 +0800 Subject: [PATCH] Update Dockerfile pin golang at 1.22 due to baidupcs incompatibility https://github.com/qjfoidnh/BaiduPCS-Go/issues/336 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5064276..661347e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang AS build-go +FROM golang:1.22 AS build-go WORKDIR /build FROM gcc AS build-c @@ -11,7 +11,7 @@ RUN wget https://github.com/tickstep/aliyunpan/archive/refs/tags/v${ALIYUNPAN_VE go build -o /aliyunpan FROM build-go AS baidupcs-build -ENV BAIDUPCS_VERSION 3.9.4 +ENV BAIDUPCS_VERSION 3.9.5 RUN wget https://github.com/qjfoidnh/BaiduPCS-Go/archive/refs/tags/v${BAIDUPCS_VERSION}.tar.gz -O baidupcs.tar.gz && \ tar -xzf baidupcs.tar.gz --strip 1 && \ go build -o /baidupcs