Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files- 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 |
|