baoyin2024 commited on
Commit
807f965
·
verified ·
1 Parent(s): e413672

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:20-alpine
2
 
3
  # Set user to root for installation
4
  USER root
@@ -31,19 +31,17 @@ ARG NODE_FUNCTION_ALLOW_BUILTIN=*
31
  ARG NODE_FUNCTION_ALLOW_EXTERNAL=*
32
 
33
 
34
- RUN apk add --no-cache \
35
  git \
36
  python3 \
37
- py3-pip \
38
- make \
39
- g++ \
40
- build-base \
41
- cairo-dev \
42
- pango-dev \
43
  chromium \
44
  postgresql-client \
45
  ffmpeg \
46
- yt-dlp
47
 
48
  # Set environment variables
49
  ENV PUPPETEER_SKIP_DOWNLOAD=true
 
1
+ FROM node:20-bookworm-slim
2
 
3
  # Set user to root for installation
4
  USER root
 
31
  ARG NODE_FUNCTION_ALLOW_EXTERNAL=*
32
 
33
 
34
+ RUN apt-get update && apt-get install -y --no-install-recommends \
35
  git \
36
  python3 \
37
+ python3-pip \
38
+ build-essential \
39
+ libcairo2-dev \
40
+ libpango1.0-dev \
 
 
41
  chromium \
42
  postgresql-client \
43
  ffmpeg \
44
+ && pip3 install yt-dlp --break-system-packages
45
 
46
  # Set environment variables
47
  ENV PUPPETEER_SKIP_DOWNLOAD=true