fix: playout Dockerfile use existing go.mod instead of init
CD / deploy (push) Successful in 1m1s
CI / test (push) Successful in 1m43s
CI / docker (push) Failing after 24s

This commit is contained in:
zwitschi committed 2026-08-07 16:24:21 +02:00
1 parent 587561f9fc
commit 8064e459f2
1 file changed
+3 -4
+3 -4
View File
@@ -2,11 +2,10 @@ FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY src/ ./src/
COPY src/go.mod src/go.sum ./
# Initialize Go module if not present
RUN go mod init playout || true
RUN go mod tidy
# Download dependencies and build
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o /playlist-manager ./src/playlist.go
FROM alpine:3.20