justincnn commited on
Commit
fedb52d
·
1 Parent(s): b9e6e15

fix: update go.mod to 1.23 and add debug output

Browse files

- Update go version from 1.21 to 1.23 in go.mod
- Add -x flag and error handling to go mod download for debugging

Files changed (2) hide show
  1. Dockerfile +1 -1
  2. go.mod +1 -1
Dockerfile CHANGED
@@ -6,7 +6,7 @@ WORKDIR /app
6
  RUN apk add --no-cache git ca-certificates
7
 
8
  COPY go.mod go.sum ./
9
- RUN go mod download
10
 
11
  COPY . .
12
  RUN CGO_ENABLED=0 GOOS=linux go build -o zai-proxy .
 
6
  RUN apk add --no-cache git ca-certificates
7
 
8
  COPY go.mod go.sum ./
9
+ RUN go mod download -x || (cat go.mod && cat go.sum && exit 1)
10
 
11
  COPY . .
12
  RUN CGO_ENABLED=0 GOOS=linux go build -o zai-proxy .
go.mod CHANGED
@@ -1,6 +1,6 @@
1
  module zai-proxy
2
 
3
- go 1.21
4
 
5
  require (
6
  github.com/corpix/uarand v0.2.0
 
1
  module zai-proxy
2
 
3
+ go 1.23
4
 
5
  require (
6
  github.com/corpix/uarand v0.2.0