Spaces:
Sleeping

Mintlow commited on
Commit
dc33cd8
·
verified ·
1 Parent(s): 0759520

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python Linux image
2
+ FROM python:3.10-slim
3
+
4
+ # Install ffmpeg (the "engine" for video processing)
5
+ RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Set up a user so we don't run as 'root' (security)
8
+ RUN useradd -m -u 1000 user
9
+ USER user
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ WORKDIR $HOME/app
14
+
15
+ # Copy your requirements and install them
16
+ COPY --chown=user . .
17
+ RUN pip install --no-cache-dir fastapi uvicorn yt-dlp requests
18
+
19
+ # Start the Mintlow Ghost Node
20
+ CMD ["python", "mintlow.py"]