Spaces:
Paused
Paused
| # Use the official Coturn Alpine image as base for lightweight setup | |
| FROM coturn/coturn:alpine | |
| # Switch to root temporarily for installations if needed (Alpine is minimal, so often unnecessary) | |
| USER root | |
| # Install socat if needed for port forwarding (e.g., UDP to TCP proxy, but note limitations) | |
| RUN apk add --no-cache socat | |
| # Create a custom entrypoint script to override default command and set port 7860 | |
| RUN mkdir -p /custom-entrypoint | |
| COPY custom-entrypoint.sh /custom-entrypoint/entrypoint.sh | |
| RUN chmod +x /custom-entrypoint/entrypoint.sh | |
| # Expose only port 7860 as per Hugging Face requirements | |
| EXPOSE 7860 7860/udp | |
| # Set the custom entrypoint | |
| ENTRYPOINT ["/custom-entrypoint/entrypoint.sh"] |