forked from ysdragon/StreamBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (32 loc) · 944 Bytes
/
Dockerfile
File metadata and controls
43 lines (32 loc) · 944 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
36
37
38
39
40
41
42
43
# Use ubuntu 24.04 (noble) as the base image
FROM ubuntu:24.04
# Set the working directory
WORKDIR /home/bots/StreamBot
# Install minimal dependencies
RUN apt-get update && apt-get install -y curl ca-certificates unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install bun and add to PATH
ENV BUN_INSTALL="/usr/local/"
RUN curl -fsSL https://bun.sh/install | bash
# Install remaining dependencies and clean cache
RUN apt-get update && apt-get install -y \
build-essential \
python3 \
ffmpeg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy package.json
COPY package.json ./
# Install dependencies
RUN bun install
# Copy the rest of the application code
COPY . .
# Verify the application builds
RUN bun run build
# Specify the port number the container should expose
EXPOSE 3000
# Create videos folder
RUN mkdir -p ./videos
# Command to run the application
CMD ["bun", "run", "start"]