Containerfile: add go version substitutes

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2023-09-16 04:52:18 +03:00
parent fea50ca37e
commit 76312192ae
4 changed files with 15 additions and 2 deletions

View File

@ -4,7 +4,10 @@ WORKDIR /build
COPY ./ /build COPY ./ /build
RUN sed -i 's/1.21.0/1.21/g' /build/go.mod RUN ls -lah
RUN sed -i 's/1.21.1/1.21/g' /build/go.mod
RUN sed -i 's/1.21.1/1.21/g' /build/go.work
RUN sed -i 's/1.21.1/1.21/g' /build/apkupdater/go.mod
RUN go mod edit -go=1.19 RUN go mod edit -go=1.19
RUN go build -o viddl . RUN go build -o viddl .

4
go.mod
View File

@ -1,3 +1,5 @@
module gitea.hbanafa.com/hesham/viddl module gitea.hbanafa.com/hesham/viddl
go 1.21.0 go 1.21.1
require gitea.hbanafa.com/hesham/viddl/apkupdater v0.0.0-20230915215353-fea50ca37e85

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
gitea.hbanafa.com/hesham/viddl/apkupdater v0.0.0-20230915215353-fea50ca37e85 h1:rnioWA0GcN24FB0RJt87T0wSXVP1TcCdWjBqoLapYb8=
gitea.hbanafa.com/hesham/viddl/apkupdater v0.0.0-20230915215353-fea50ca37e85/go.mod h1:Sgh/I30w/7YHunFggHb+Gi163/eq6PRkphEXkK7crsc=

6
go.work Normal file
View File

@ -0,0 +1,6 @@
go 1.21.1
use (
.
./apkupdater
)