baoyin2024 commited on
Commit
f8dcf7b
·
verified ·
1 Parent(s): 0ac823c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -24,8 +24,13 @@ ARG DB_POSTGRESDB_PORT=$DB_POSTGRESDB_PORT
24
  ARG DB_POSTGRESDB_USER=$DB_POSTGRESDB_USER
25
  ARG DB_POSTGRESDB_PASSWORD=$DB_POSTGRESDB_PASSWORD
26
 
 
 
 
 
27
  # Install system dependencies
28
- RUN apk update && apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium postgresql-client ffmpeg fontconfig dejavu-fonts yt-dlp
 
29
 
30
  # Install custom fonts
31
  RUN mkdir -p /usr/share/fonts/truetype/custom
@@ -61,3 +66,4 @@ CMD ["n8n", "start"]
61
 
62
 
63
 
 
 
24
  ARG DB_POSTGRESDB_USER=$DB_POSTGRESDB_USER
25
  ARG DB_POSTGRESDB_PASSWORD=$DB_POSTGRESDB_PASSWORD
26
 
27
+ # Change Alpine mirror - Using Aliyun mirror for faster downloads in China
28
+ RUN echo "http://mirrors.aliyun.com/alpine/v3.18/main" > /etc/apk/repositories && \
29
+ echo "http://mirrors.aliyun.com/alpine/v3.18/community" >> /etc/apk/repositories
30
+
31
  # Install system dependencies
32
+ RUN apk update || echo "apk update failed" && exit 1
33
+ RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium postgresql-client ffmpeg fontconfig dejavu-fonts yt-dlp || echo "apk add failed" && exit 1
34
 
35
  # Install custom fonts
36
  RUN mkdir -p /usr/share/fonts/truetype/custom
 
66
 
67
 
68
 
69
+