coturn: Make container builds more consistent

This commit is contained in:
Alex Palaistras 2023-12-30 17:13:32 +00:00
parent faa0420931
commit c17b4e91c8
2 changed files with 3 additions and 5 deletions

View File

@ -11,15 +11,13 @@ FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b864
RUN apt-get update -y && apt-get upgrade -y && \ RUN apt-get update -y && apt-get upgrade -y && \
apt-get install -y --no-install-recommends ca-certificates gettext gosu apt-get install -y --no-install-recommends ca-certificates gettext gosu
RUN apt-get install -y --no-install-recommends \ RUN apt-get update -y && 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 \ libevent-2.1 libevent-core-2.1 libevent-extra-2.1 libevent-openssl-2.1 libevent-pthreads-2.1 \
libssl3 libssl3
RUN addgroup --system --gid 10000 coturn && \ RUN adduser --system --group --uid 10000 --home /var/lib/coturn coturn
adduser --system --uid 10000 --ingroup coturn --home /var/lib/coturn coturn
COPY --from=builder /build / COPY --from=builder /build /
COPY container/config /etc/coturn COPY container/config /etc/coturn
COPY container/run-coturn /run-coturn COPY container/run-coturn /run-coturn
COPY container/run-healthcheck /run-healthcheck COPY container/run-healthcheck /run-healthcheck

View File

@ -10,4 +10,4 @@ for file in /etc/coturn/*.template; do
envsubst "$ENV_NAMES" < "$file" > "${file%.template}" envsubst "$ENV_NAMES" < "$file" > "${file%.template}"
done done
/usr/bin/turnserver -c /etc/coturn/turnserver.conf exec /usr/bin/turnserver -c /etc/coturn/turnserver.conf