Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -24,13 +24,19 @@ 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 |
# 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
|
|
@@ -67,3 +73,4 @@ CMD ["n8n", "start"]
|
|
| 67 |
|
| 68 |
|
| 69 |
|
|
|
|
|
|
| 24 |
ARG DB_POSTGRESDB_USER=$DB_POSTGRESDB_USER
|
| 25 |
ARG DB_POSTGRESDB_PASSWORD=$DB_POSTGRESDB_PASSWORD
|
| 26 |
|
| 27 |
+
# Explicitly set DNS server
|
| 28 |
+
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
| 29 |
+
|
| 30 |
# Change Alpine mirror - Using Aliyun mirror for faster downloads in China
|
| 31 |
+
# You can also try other mirrors if Aliyun fails:
|
| 32 |
+
# http://dl-cdn.alpinelinux.org/alpine/v3.18/main
|
| 33 |
+
# http://dl-cdn.alpinelinux.org/alpine/v3.18/community
|
| 34 |
RUN echo "http://mirrors.aliyun.com/alpine/v3.18/main" > /etc/apk/repositories && \
|
| 35 |
echo "http://mirrors.aliyun.com/alpine/v3.18/community" >> /etc/apk/repositories
|
| 36 |
|
| 37 |
# Install system dependencies
|
| 38 |
RUN apk update || echo "apk update failed" && exit 1
|
| 39 |
+
RUN apk add --no-cache --update-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
|
| 40 |
|
| 41 |
# Install custom fonts
|
| 42 |
RUN mkdir -p /usr/share/fonts/truetype/custom
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
+
|