Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +38 -16
Dockerfile
CHANGED
|
@@ -1,21 +1,43 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
|
|
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
pulseaudio \
|
| 8 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
| 14 |
-
# You can add more users by appending them to this list
|
| 15 |
-
ENV JIBRI_USERS="jibri1:password1 jibri2:password2"
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
ENTRYPOINT ["/start-jibris.sh"]
|
|
|
|
| 1 |
+
# Dockerfile — coturn + playit single container
|
| 2 |
+
# Build: docker build -t coturn-playit:latest .
|
| 3 |
+
FROM coturn/coturn:edge-debian
|
| 4 |
|
| 5 |
+
ARG PLAYIT_VERSION="0.16.3"
|
| 6 |
+
ENV PLAYIT_VERSION=${PLAYIT_VERSION}
|
| 7 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
# Install utilities: curl, ca-certificates, tar (playit release is a tarball)
|
| 10 |
+
RUN apt-get update && \
|
| 11 |
+
apt-get install -y --no-install-recommends \
|
| 12 |
+
curl ca-certificates tar gzip bash && \
|
| 13 |
+
rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
WORKDIR /opt
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
# Download playit agent binary (official releases on GitHub)
|
| 18 |
+
# NOTE: the release asset name may vary by version — this downloads the linux amd64 tarball if present.
|
| 19 |
+
# If the asset name for chosen version differs, change the URL accordingly.
|
| 20 |
+
RUN curl -sL "https://github.com/playit-cloud/playit-agent/releases/download/v0.16.3/playit-linux-amd64" -o /tmp/playit.tar.gz && \
|
| 21 |
+
if [ -f /tmp/playit.tar.gz ]; then \
|
| 22 |
+
tar -xzf /tmp/playit.tar.gz -C /opt && \
|
| 23 |
+
chmod +x /opt/playit* || true ; \
|
| 24 |
+
else \
|
| 25 |
+
echo "WARNING: playit binary not downloaded. Check PLAYIT_VERSION or release asset names." ; \
|
| 26 |
+
fi && rm -f /tmp/playit.tar.gz
|
| 27 |
+
|
| 28 |
+
# Create folders for configs
|
| 29 |
+
RUN mkdir -p /etc/coturn /etc/playit /var/lib/coturn
|
| 30 |
+
|
| 31 |
+
# Copy default turnserver.conf and entrypoint script into image
|
| 32 |
+
# COPY turnserver.conf /etc/coturn/turnserver.conf
|
| 33 |
+
# COPY init.sh /usr/local/bin/entrypoint.sh
|
| 34 |
+
# RUN chmod +x /usr/local/bin/entrypoint.sh
|
| 35 |
+
|
| 36 |
+
# # Expose TURN/STUN default ports (you can adjust or publish other ranges when running container)
|
| 37 |
+
# EXPOSE 3478 3478/udp 5349 5349/udp
|
| 38 |
+
# # Note: coturn uses ephemeral UDP relay ports (e.g. 49152-65535) — publish them on docker run if needed
|
| 39 |
+
|
| 40 |
+
# STOPSIGNAL SIGTERM
|
| 41 |
+
# ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 42 |
+
# CMD ["run"]
|
| 43 |
|
|
|