fix: rearrange steps again
This commit is contained in:
1 parent
7184240dd4
commit
072a91961f
1 file changed
+4
-8
@@ -16,22 +16,18 @@ RUN apk add --no-cache \
|
|||||||
ffmpeg \
|
ffmpeg \
|
||||||
curl \
|
curl \
|
||||||
bash
|
bash
|
||||||
|
# Set working directory for playout
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# Copy demo data for out-of-the-box playout
|
# Copy demo data for out-of-the-box playout
|
||||||
COPY demodata/ /app/
|
COPY demodata/ /app/
|
||||||
|
# Copy the playout start script and the built playlist manager binary
|
||||||
COPY --from=builder /playlist-manager /app/playlist-manager
|
|
||||||
COPY start-playout.sh /app/
|
COPY start-playout.sh /app/
|
||||||
|
# Copy the built playlist manager binary from the builder stage
|
||||||
|
COPY --from=builder /playlist-manager /app/playlist-manager
|
||||||
# Create directories for playlist, media, and HLS output
|
# Create directories for playlist, media, and HLS output
|
||||||
RUN mkdir -p /app/hls
|
RUN mkdir -p /app/hls
|
||||||
|
|
||||||
RUN chmod +x /app/start-playout.sh /app/playlist-manager
|
RUN chmod +x /app/start-playout.sh /app/playlist-manager
|
||||||
|
|
||||||
# Expose HLS directory (will be served by nginx)
|
# Expose HLS directory (will be served by nginx)
|
||||||
VOLUME ["/app/hls"]
|
VOLUME ["/app/hls"]
|
||||||
|
|
||||||
# Default command runs the playout loop (which calls the Go validator)
|
# Default command runs the playout loop (which calls the Go validator)
|
||||||
CMD ["./start-playout.sh"]
|
CMD ["./start-playout.sh"]
|
||||||
Reference in new issue
Block a user