-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathDockerfile.node
More file actions
39 lines (29 loc) · 838 Bytes
/
Dockerfile.node
File metadata and controls
39 lines (29 loc) · 838 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
# Use Debian (trixie) as the base image
FROM node:trixie
# 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 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 npm install
# Copy the rest of the application code
COPY . .
# Verify the application builds
RUN npm 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 ["npm", "run", "start:node"]