2023-12-22 17:54:13 +00:00
|
|
|
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
|
2022-01-15 10:16:39 +00:00
|
|
|
|
2023-12-22 17:54:13 +00:00
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
|
2022-01-15 10:16:39 +00:00
|
|
|
RUN apt-get update -y && apt-get upgrade -y && \
|
2023-12-22 17:54:13 +00:00
|
|
|
apt-get install -y --no-install-recommends ca-certificates gettext gosu
|
|
|
|
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
2023-12-22 18:23:50 +00:00
|
|
|
libevent-2.1 libevent-core-2.1 libevent-extra-2.1 libevent-openssl-2.1 libevent-pthreads-2.1 \
|
|
|
|
libssl3
|
2023-12-22 17:54:13 +00:00
|
|
|
|
2023-12-22 18:34:37 +00:00
|
|
|
RUN addgroup --system --gid 10000 coturn && \
|
|
|
|
adduser --system --uid 10000 --ingroup coturn --home /var/lib/coturn coturn
|
|
|
|
|
2023-12-22 17:54:13 +00:00
|
|
|
COPY --from=builder /build /
|
2022-01-15 10:16:39 +00:00
|
|
|
|
|
|
|
COPY container/config /etc/coturn
|
|
|
|
COPY container/run-coturn /run-coturn
|
2023-10-29 14:05:16 +00:00
|
|
|
COPY container/run-healthcheck /run-healthcheck
|
2022-01-15 10:16:39 +00:00
|
|
|
|
|
|
|
# STUN/TURN ports.
|
|
|
|
EXPOSE 3478 3478/udp 5349 5349/udp
|
|
|
|
|
|
|
|
# Alternative STUN/TURN ports.
|
|
|
|
EXPOSE 3479 3479/udp 5350 5350/udp
|
|
|
|
|
|
|
|
ENTRYPOINT ["/run-coturn"]
|