FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 AS builder RUN apt-get update -y && apt-get install -y --no-install-recommends \ ca-certificates build-essential pkg-config git libevent-dev libssl-dev ARG VERSION=4.6.2 # renovate: datasource=github-releases depName=coturn/coturn RUN git clone --branch ${VERSION} --depth=1 https://github.com/coturn/coturn.git /src && \ mkdir /build && cd /src && ./configure --prefix=/usr --turndbdir=/var/lib/coturn && \ make && make install DESTDIR=/build FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340 RUN apt-get update -y && apt-get upgrade -y && \ apt-get install -y --no-install-recommends ca-certificates gettext gosu RUN apt-get install -y --no-install-recommends \ libevent-2.1 libevent-core-2.1 libevent-extra-2.1 libevent-openssl-2.1 libevent-pthreads-2.1 \ libssl3 RUN addgroup --system --gid 10000 coturn && \ adduser --system --uid 10000 --ingroup coturn --home /var/lib/coturn coturn COPY --from=builder /build / COPY container/config /etc/coturn COPY container/run-coturn /run-coturn COPY container/run-healthcheck /run-healthcheck # STUN/TURN ports. EXPOSE 3478 3478/udp 5349 5349/udp # Alternative STUN/TURN ports. EXPOSE 3479 3479/udp 5350 5350/udp ENTRYPOINT ["/run-coturn"]