File size: 518 Bytes
e560fa8
 
72a3e34
e560fa8
 
72a3e34
e560fa8
 
 
72a3e34
 
e560fa8
72a3e34
e560fa8
 
72a3e34
392f9bd
5fdcbed
e560fa8
72a3e34
e560fa8
 
72a3e34
 
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
FROM node:18-bullseye

# Set working directory
WORKDIR /app

# Copy package.json & install dependencies
COPY package*.json ./
RUN npm install --omit=dev

# Install ffmpeg (kalau masih butuh)
RUN apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/*

# Copy semua file
COPY . .

# Buat folder "files" & atur permission dengan benar
RUN mkdir -p /app/files && chmod -R 777 /app/files
RUN touch /app/list.json && chmod 666 /app/list.json

# Expose port API
EXPOSE 7860

# Start aplikasi
CMD ["npm", "start"]