privateone commited on
Commit
90c3f08
·
verified ·
1 Parent(s): 689e669

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Coturn Alpine image as base for lightweight setup
2
+ FROM coturn/coturn:alpine
3
+
4
+ # Switch to root temporarily for installations if needed (Alpine is minimal, so often unnecessary)
5
+ USER root
6
+
7
+ # Install socat if needed for port forwarding (e.g., UDP to TCP proxy, but note limitations)
8
+ RUN apk add --no-cache socat
9
+
10
+ # Create a custom entrypoint script to override default command and set port 7860
11
+ RUN mkdir -p /custom-entrypoint
12
+ COPY custom-entrypoint.sh /custom-entrypoint/entrypoint.sh
13
+ RUN chmod +x /custom-entrypoint/entrypoint.sh
14
+
15
+ # Expose only port 7860 as per Hugging Face requirements
16
+ EXPOSE 7860 7860/udp
17
+
18
+ # Set the custom entrypoint
19
+ ENTRYPOINT ["/custom-entrypoint/entrypoint.sh"]