discord / Dockerfile
Twan07's picture
Update Dockerfile
2df6cd6 verified
raw
history blame
749 Bytes
# Use official Bun base image
FROM oven/bun:latest
# Install ffmpeg, curl, and build tools (including Python for native dependencies)
RUN apt-get update && apt-get install -y \
ffmpeg \
curl \
python3 \
python3-pip \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install yt-dlp from GitHub release
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp \
-o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp
# Set working directory
WORKDIR /app
# Copy bun.lockb and install dependencies with Bun
COPY bun.lockb .
# Copy the rest of the application
COPY . .
RUN bun install
#RUN sudo ufw allow 443
# Expose port
EXPOSE 3000
# Command to run the app with Bun
CMD ["bun", "index.ts"]