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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
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, Python, Chromium, FFmpeg, and other dependencies
8
  RUN apk add --no-cache \
9
  git \
10
- python2 \
11
  chromium \
12
  nss \
13
  freetype \
@@ -17,6 +17,9 @@ RUN apk add --no-cache \
17
  ttf-freefont \
18
  ffmpeg
19
 
 
 
 
20
  # Copy package.json and package-lock.json first to leverage Docker caching
21
  COPY package*.json ./
22
 
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
+ # Install git, Python 3, Chromium, FFmpeg, and other dependencies
8
  RUN apk add --no-cache \
9
  git \
10
+ python3 \
11
  chromium \
12
  nss \
13
  freetype \
 
17
  ttf-freefont \
18
  ffmpeg
19
 
20
+ # Symlink python3 to python (if needed by any scripts)
21
+ RUN ln -s /usr/bin/python3 /usr/bin/python
22
+
23
  # Copy package.json and package-lock.json first to leverage Docker caching
24
  COPY package*.json ./
25