discord / Dockerfile
Twan07's picture
Update Dockerfile
094dcb7 verified
raw
history blame contribute delete
879 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 add socks-proxy-agent
RUN bun install
#RUN curl --socks5-hostname 128.199.104.11:443 --proxy-user admin1:thanhtai123 https://discord.com
#RUN sudo ufw allow 443
# Expose port
EXPOSE 3000
# Command to run the app with Bun
CMD ["bun", "index.ts"]