void0028 commited on
Commit
6798fe5
·
verified ·
1 Parent(s): 85faf53

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Stremio Server image
2
+ FROM stremio/server:latest
3
+
4
+ # Switch to root user to install the port-forwarding tool
5
+ USER root
6
+
7
+ # Install socat (this bridges the gap between HF and Stremio)
8
+ RUN apt-get update && apt-get install -y socat
9
+
10
+ # Allow access from anywhere (Crucial for Web/External access)
11
+ ENV NO_CORS=1
12
+
13
+ # Hugging Face exposes port 7860. Stremio listens on 11470.
14
+ # We map 7860 -> 11470 so the outside world can talk to Stremio.
15
+ EXPOSE 7860
16
+
17
+ # Start the port forwarder in the background, then start Stremio
18
+ CMD socat TCP-LISTEN:7860,fork TCP:127.0.0.1:11470 & node server.js