-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
26 lines (20 loc) · 803 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
26 lines (20 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
FROM oven/bun
# Install yt-dlp dependencies
RUN apt-get update && \
apt-get install -y python3 ffmpeg curl && \
# Install yt-dlp in its own world-writable dir so it can self-update at
# runtime (the container runs as a non-root user)
mkdir /opt/yt-dlp && \
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /opt/yt-dlp/yt-dlp && \
chmod -R 777 /opt/yt-dlp && \
# Clean up unnecessary files
apt-get remove -y curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV PATH="/opt/yt-dlp:$PATH"
RUN mkdir /storage && chmod 777 /storage
ENV NODE_ENV=development
# Since the entire working dir will be mounted, we can't install deps here
WORKDIR /app
# Make sure deps are installed & start the app in watch mode
CMD ["sh", "-c", "bun install && bun dev"]