mirror of
https://github.com/R0m1k3/FlowReader.git
synced 2026-10-11 17:28:05 +02:00
fix: generate go.sum during docker build by running go mod tidy
This commit is contained in:
1 parent
9757c03f2a
commit
361fe4b407
1 file changed
+2
-3
+2
-3
@@ -11,10 +11,9 @@ RUN npm run build
|
||||
# Step 2: Build the Go Backend
|
||||
FROM golang:1.24-alpine AS builder
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache git
|
||||
COPY go.mod ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN go mod tidy
|
||||
RUN go mod download
|
||||
# Copy the built frontend from Step 1
|
||||
COPY --from=web-builder /app/web/dist ./web/dist
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-w -s" -o /server ./cmd/server
|
||||
|
||||
Reference in new issue
Block a user