Add complete playout service, chat backend, frontend with HLS player and live chat, Docker integration with health checks, updated CHANGELOG and architecture docs
This commit is contained in:
1 parent
0785260689
commit
15a2aaa1a1
23 files changed
+2372
-37
No files matched your search
@@ -1,3 +1,15 @@
|
||||
FROM golang:1.23-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY src/ ./src/
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
# Initialize Go module if not present
|
||||
RUN go mod init playout || true
|
||||
RUN go mod tidy
|
||||
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /playlist-manager ./src/playlist.go
|
||||
|
||||
FROM alpine:3.20
|
||||
|
||||
# Install FFmpeg, curl for health checks, and basic tools
|
||||
@@ -8,18 +20,17 @@ RUN apk add --no-cache \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy playout scripts and configuration
|
||||
COPY src/ /app/src/
|
||||
COPY config/ /app/config/
|
||||
COPY --from=builder /playlist-manager /app/playlist-manager
|
||||
COPY start-playout.sh /app/
|
||||
COPY *.sh /app/
|
||||
|
||||
RUN chmod +x /app/*.sh
|
||||
RUN chmod +x /app/*.sh /app/playlist-manager
|
||||
|
||||
# Create directories for playlist and HLS output
|
||||
RUN mkdir -p /app/playlist /app/hls
|
||||
# Create directories for playlist, media, and HLS output
|
||||
RUN mkdir -p /app/playlist /app/media /app/hls
|
||||
|
||||
# Expose HLS directory (will be served by nginx)
|
||||
VOLUME ["/app/hls"]
|
||||
|
||||
# Default command runs the playout loop
|
||||
# Default command runs the playout loop (which calls the Go validator)
|
||||
CMD ["./start-playout.sh"]
|
||||
Reference in new issue
Block a user