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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -4,10 +4,10 @@ FROM node:18-alpine
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
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,7 +21,7 @@ RUN apk add --no-cache \
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
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
+ # Install git, Python, Chromium, FFmpeg, and other dependencies
8
  RUN apk add --no-cache \
9
  git \
10
+ python2 \
11
  chromium \
12
  nss \
13
  freetype \
 
21
  COPY package*.json ./
22
 
23
  # Install production dependencies
24
+ RUN npm install --only=production --unsafe-perm=true --allow-root
25
 
26
  # Install PM2 globally
27
  RUN npm install -g pm2