diff --git a/Dockerfile b/Dockerfile index feeb838..0f75c3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ -FROM minddocdev/node-alpine:14.11.0 AS base -RUN echo -e 'http://mirrors.aliyun.com/alpine/v3.9/main/' > /etc/apk/repositories -RUN apk update -RUN apk add build-base tzdata cairo-dev jpeg-dev pango-dev freetype-dev giflib-dev&& \ +FROM node:16-alpine AS base +# # If your server node is in a special area, you can replace the apk source to speed up deployment. For example as follow: +# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories +# RUN apk update +RUN apk add --no-cache build-base tzdata cairo-dev jpeg-dev pango-dev freetype-dev giflib-dev&& \ cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN npm install -g pm2