File size: 879 Bytes
5bc5b77
84efda5
 
5bc5b77
 
 
 
 
 
 
 
84efda5
5bc5b77
 
 
84efda5
5bc5b77
 
84efda5
5bc5b77
 
84efda5
5bc5b77
84efda5
112f223
1cbeeee
094dcb7
fd39e08
2df6cd6
5bc5b77
1cbeeee
84efda5
5bc5b77
1cbeeee
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
# 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"]