mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 15:46:39 +08:00
13 lines
622 B
Docker
13 lines
622 B
Docker
FROM node:22.1-alpine AS base
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
|
|
RUN apk add --no-cache tzdata
|
|
# 设置时区环境变量
|
|
ENV TZ=Asia/Chongqing
|
|
# 更新并安装时区工具
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
RUN yarn config set registry 'https://registry.npmmirror.com' ; \
|
|
yarn config set sharp_binary_host "https://cdn.npmmirror.com/binaries/sharp" ; \
|
|
yarn config set sharp_libvips_binary_host "https://cdn.npmmirror.com/binaries/sharp-libvips"
|
|
ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma
|