privateone/coturn
0
1# Use the official Coturn Alpine image as base for lightweight setup2FROM coturn/coturn:alpine3 4# Switch to root temporarily for installations if needed (Alpine is minimal, so often unnecessary)5USER root6 7# Install socat if needed for port forwarding (e.g., UDP to TCP proxy, but note limitations)8RUN apk add --no-cache socat9 10# Create a custom entrypoint script to override default command and set port 786011RUN mkdir -p /custom-entrypoint12COPY custom-entrypoint.sh /custom-entrypoint/entrypoint.sh13RUN chmod +x /custom-entrypoint/entrypoint.sh14 15# Expose only port 7860 as per Hugging Face requirements16EXPOSE 7860 7860/udp17 18# Set the custom entrypoint19ENTRYPOINT ["/custom-entrypoint/entrypoint.sh"]