fullpwerr commited on
Commit
72a3e34
·
1 Parent(s): 8dbb8fd
Files changed (2) hide show
  1. Dockerfile +10 -9
  2. routes/index.js +0 -0
Dockerfile CHANGED
@@ -1,22 +1,23 @@
1
  FROM node:18-bullseye
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY package*.json ./
6
  RUN npm install --omit=dev
7
 
8
- RUN apt update && apt install -y \
9
- ffmpeg \
10
- python3 \
11
- python3-pip \
12
- wget \
13
- && ln -s /usr/bin/python3 /usr/bin/python \
14
- && rm -rf /var/lib/apt/lists/*
15
 
 
16
  COPY . .
17
 
18
- RUN chmod -R 777 /app/files/
 
19
 
 
20
  EXPOSE 7860
21
 
22
- CMD ["npm", "start"]
 
 
1
  FROM node:18-bullseye
2
 
3
+ # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy package.json & install dependencies
7
  COPY package*.json ./
8
  RUN npm install --omit=dev
9
 
10
+ # Install ffmpeg (kalau masih butuh)
11
+ RUN apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
12
 
13
+ # Copy semua file
14
  COPY . .
15
 
16
+ # Buat folder "files" & atur permission dengan benar
17
+ RUN mkdir -p /app/files && chmod 777 /app/files
18
 
19
+ # Expose port API
20
  EXPOSE 7860
21
 
22
+ # Start aplikasi
23
+ CMD ["npm", "start"]
routes/index.js DELETED
File without changes