Spaces:
Sleeping

mintlow-node / Dockerfile
Mintlow's picture
Create Dockerfile
dc33cd8 verified
Raw History Blame Contribute Delete
552 Bytes
# 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"]