mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
8f3773a780
This also improves base image caching by re-using as many initial steps as possible.
30 lines
1.1 KiB
Docker
30 lines
1.1 KiB
Docker
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 libssl3
|
|
|
|
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"]
|