harvesthealth commited on
Commit
09d0833
·
verified ·
1 Parent(s): f94e00d

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -9,15 +9,15 @@ RUN apk add --no-cache git
9
  # Copy go mod files first for better caching
10
  COPY go.mod go.sum .
11
 
 
 
 
12
  # Allow Go to regenerate go.sum based on actual imports
13
  RUN go mod tidy
14
 
15
  # Download dependencies using the updated go.sum
16
  RUN go mod download
17
 
18
- # Copy source code
19
- COPY . .
20
-
21
  # Optional but recommended
22
  RUN go mod verify
23
 
 
9
  # Copy go mod files first for better caching
10
  COPY go.mod go.sum .
11
 
12
+ # Source code must be present BEFORE tidy
13
+ COPY . .
14
+
15
  # Allow Go to regenerate go.sum based on actual imports
16
  RUN go mod tidy
17
 
18
  # Download dependencies using the updated go.sum
19
  RUN go mod download
20
 
 
 
 
21
  # Optional but recommended
22
  RUN go mod verify
23