10 lines
309 B
Docker
10 lines
309 B
Docker
FROM node:18.17.1-alpine3.18
|
|
|
|
# 更换国内源
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
|
|
|
# 设置时区
|
|
RUN apk update \
|
|
&& apk add tzdata \
|
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& echo "Asia/Shanghai" > /etc/timezone |