ilhamdev commited on
Commit
4ceb020
·
verified ·
1 Parent(s): a9a2cf0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -7,6 +7,7 @@ WORKDIR /app
7
  # Install git, Chromium, FFmpeg, and other dependencies for Puppeteer
8
  RUN apk add --no-cache \
9
  git \
 
10
  chromium \
11
  nss \
12
  freetype \
@@ -20,7 +21,7 @@ RUN apk add --no-cache \
20
  COPY package*.json ./
21
 
22
  # Install production dependencies
23
- RUN npm install --omit=dev
24
 
25
  # Install PM2 globally
26
  RUN npm install -g pm2
@@ -38,4 +39,4 @@ COPY . .
38
  EXPOSE 7860
39
 
40
  # Run the application using PM2
41
- CMD ["pm2-runtime", "index.js", "--name", "API"]
 
7
  # Install git, Chromium, FFmpeg, and other dependencies for Puppeteer
8
  RUN apk add --no-cache \
9
  git \
10
+ python2 \ # Instalasi Python ditambahkan di sini
11
  chromium \
12
  nss \
13
  freetype \
 
21
  COPY package*.json ./
22
 
23
  # Install production dependencies
24
+ RUN npm install --omit=dev --unsafe-perm=true --allow-root # Tambahkan --unsafe-perm dan --allow-root
25
 
26
  # Install PM2 globally
27
  RUN npm install -g pm2
 
39
  EXPOSE 7860
40
 
41
  # Run the application using PM2
42
+ CMD ["pm2-runtime", "index.js", "--name", "API"]