Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
pin golang at 1.22 due to baidupcs incompatibility
qjfoidnh/BaiduPCS-Go#336
  • Loading branch information
puzzlemoondev committed Oct 23, 2024
1 parent 60933bf commit 4abcf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang AS build-go
FROM golang:1.22 AS build-go
WORKDIR /build

FROM gcc AS build-c
Expand All @@ -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
Expand Down

0 comments on commit 4abcf20

Please sign in to comment.