File size: 703 Bytes
90c3f08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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"]