ilhamdev commited on
Commit
2fa1867
·
verified ·
1 Parent(s): b6ff0bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM node:18-alpine
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Install git, Chromium, and other dependencies for Puppeteer
8
  RUN apk add --no-cache \
9
  git \
10
  chromium \
@@ -13,7 +13,8 @@ RUN apk add --no-cache \
13
  freetype-dev \
14
  harfbuzz \
15
  ca-certificates \
16
- ttf-freefont
 
17
 
18
  # Copy package.json and package-lock.json first to leverage Docker caching
19
  COPY package*.json ./
@@ -37,4 +38,4 @@ COPY . .
37
  EXPOSE 7860
38
 
39
  # Run the application using PM2
40
- CMD ["pm2-runtime", "index.js", "--name", "API"]
 
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
  chromium \
 
13
  freetype-dev \
14
  harfbuzz \
15
  ca-certificates \
16
+ ttf-freefont \
17
+ ffmpeg
18
 
19
  # Copy package.json and package-lock.json first to leverage Docker caching
20
  COPY package*.json ./
 
38
  EXPOSE 7860
39
 
40
  # Run the application using PM2
41
+ CMD ["pm2-runtime", "index.js", "--name", "API"]