Skip to content

Commit

Permalink
Update base image
Browse files Browse the repository at this point in the history
Signed-off-by: edmondfrank <edmondfrank@hotmail.com>
  • Loading branch information
EdmondFrank committed Sep 6, 2023
1 parent afafc4f commit e7bac3f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e7bac3f

Please sign in to comment.