Spaces:
Sleeping

File size: 552 Bytes
dc33cd8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use a lightweight Python Linux image
FROM python:3.10-slim

# Install ffmpeg (the "engine" for video processing)
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*

# Set up a user so we don't run as 'root' (security)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

# Copy your requirements and install them
COPY --chown=user . .
RUN pip install --no-cache-dir fastapi uvicorn yt-dlp requests

# Start the Mintlow Ghost Node
CMD ["python", "mintlow.py"]