Skip to content

Commit 7900156

Browse files
update dockerfile
Signed-off-by: stoneshi-yunify <[email protected]>
1 parent 42a0639 commit 7900156

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
Build:
1616
runs-on: ubuntu-22.04
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Docker meta for KubeSphere
2020
id: meta
2121
if: github.repository_owner == 'kubesphere'

Dockerfile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
FROM golang:1.11-alpine as builder
1+
FROM golang:1.23 as builder
22

33
WORKDIR /go/src/github.com/kubesphere/s2irun
44
COPY cmd/ cmd/
55
COPY pkg/ pkg/
6-
COPY vendor/ vendor/
6+
COPY go.mod go.mod
7+
COPY go.sum go.sum
78

89
# Build
9-
RUN CGO_ENABLED=0 GOOS=linux go build -a -o builder github.com/kubesphere/s2irun/cmd
10+
RUN CGO_ENABLED=0 GO111MODULE=on GOOS=linux go build -a -o builder github.com/kubesphere/s2irun/cmd
1011

11-
FROM alpine:3.11
12+
FROM alpine:3.21
1213

1314
WORKDIR /root/
1415

0 commit comments

Comments
 (0)