-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 803 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (26 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Custom n8n image with yt-dlp and FFmpeg for InstaGist
# Based on official n8n Docker image
FROM n8nio/n8n:latest
# Switch to root to install dependencies
USER root
# Update package list and install FFmpeg and Python dependencies
RUN apk update && \
apk add --no-cache \
ffmpeg \
python3 \
py3-pip \
&& rm -rf /var/cache/apk/*
# Install yt-dlp
RUN pip3 install --no-cache-dir --break-system-packages yt-dlp
# Verify installations
RUN ffmpeg -version && \
yt-dlp --version && \
echo "All dependencies installed successfully!"
# Create temp directory for video processing
RUN mkdir -p /tmp/insta-gist && \
chmod 777 /tmp/insta-gist
# Switch back to node user (n8n default)
USER node
# Expose n8n port
EXPOSE 5678
# Default n8n command (inherited from base image)