# The amd64 base is Cobalt 11.7.1, upstream revision a636575b09de1fc55d9b8cd98cac88f5f2f16b42.
FROM ghcr.io/imputnet/cobalt@sha256:59dc9bc86312105d621f678fd917e51a8436e5e2afdce388795760c6be44617f

# Empty is permitted for local validation only. A network deployment needs an
# accessible source offer in its user-facing interface, not just this label.
ARG CORRESPONDING_SOURCE_URL=""
LABEL org.opencontainers.image.version="11.7.1-muxer4" \
      org.opencontainers.image.licenses="AGPL-3.0" \
      org.opencontainers.image.source="${CORRESPONDING_SOURCE_URL}" \
      org.opencontainers.image.base.digest="sha256:59dc9bc86312105d621f678fd917e51a8436e5e2afdce388795760c6be44617f"

# Upstream's Dockerfile deploys api/ into /app. Retain its node user, command,
# entrypoint, dependencies, exposed port, and all other runtime settings.
COPY --chown=node:node ffmpeg.js /app/src/stream/ffmpeg.js
COPY --chown=node:node internal-hls.js /app/src/stream/internal-hls.js
COPY --chown=node:node LICENSE /app/LICENSE
COPY --chown=node:node NOTICE /app/NOTICE.vendor-muxer
