* add external modules and patches * migrate pion webrtc to vendored headlessclient, drop local pion replaces * use chrome ice credentials, one webrtc api per peer connection * send one user agent everywhere, use the vendored websocket * route the telemost joiner through headlessclient, drop the dead keylog * answer telemost dtls without a hello verify round trip * follow the headlessclient dtls 1.3 mimicry rename * follow the headless-client rename and apply the profile before the caller settings * build every webrtc api through relay/headlessapi * register chrome rtp header extensions for every pion consumer * dial vk webtransport signaling through the headless quic profile * dial dion and wb stream through the headless chrome profile * announce chrome's http/3 settings on the vk webtransport signaling * send chrome header blocks on bitrix http and livekit websocket * send chrome's webtransport connect headers on vk signaling * stop passing invented track names to the library * move wbp http paths onto the headlessclient profile * migrate to a published headlessclient * dedup go.mod
42 lines
1.7 KiB
Docker
42 lines
1.7 KiB
Docker
FROM --platform=$BUILDPLATFORM golang:1.26-bookworm AS build
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum /src/
|
|
COPY relay /src/relay
|
|
COPY headless /src/headless
|
|
|
|
RUN go -C /src/headless/vk build -trimpath -ldflags="-s -w" -o /out/headless-vk-creator . \
|
|
&& go -C /src/headless/telemost build -trimpath -ldflags="-s -w" -o /out/headless-telemost-creator . \
|
|
&& go -C /src/headless/wbstream build -trimpath -ldflags="-s -w" -o /out/headless-wbstream-creator . \
|
|
&& go -C /src/headless/dion build -trimpath -ldflags="-s -w" -o /out/headless-dion-creator . \
|
|
&& go -C /src/headless/bitrix build -trimpath -ldflags="-s -w" -o /out/headless-bitrix-creator . \
|
|
&& go -C /src/headless/vk-bot build -trimpath -ldflags="-s -w" -o /out/headless-vk-bot .
|
|
|
|
FROM debian:bookworm-slim
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates tini \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd --system --create-home --home /home/wlb --shell /usr/sbin/nologin wlb \
|
|
&& mkdir -p /opt/wlb/bin /data/sessions \
|
|
&& chown -R wlb:wlb /data
|
|
|
|
COPY --from=build /out/headless-vk-creator /opt/wlb/bin/
|
|
COPY --from=build /out/headless-telemost-creator /opt/wlb/bin/
|
|
COPY --from=build /out/headless-wbstream-creator /opt/wlb/bin/
|
|
COPY --from=build /out/headless-dion-creator /opt/wlb/bin/
|
|
COPY --from=build /out/headless-bitrix-creator /opt/wlb/bin/
|
|
COPY --from=build /out/headless-vk-bot /usr/local/bin/
|
|
|
|
COPY headless/docker/entrypoint.sh /usr/local/bin/wlb-entrypoint
|
|
RUN chmod +x /usr/local/bin/wlb-entrypoint
|
|
|
|
USER wlb
|
|
WORKDIR /data
|
|
VOLUME ["/data"]
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/wlb-entrypoint"]
|