forked from XiaoMo/ChatGPT-Next-Web
fix: docker build
This commit is contained in:
parent
fe9dd88c3f
commit
e7e39ba56e
@ -6,13 +6,9 @@ RUN apk add --no-cache libc6-compat
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json yarn.lock* package-lock.json* ./
|
COPY package.json yarn.lock ./
|
||||||
|
|
||||||
RUN \
|
RUN yarn install
|
||||||
if [ -f yarn.lock ]; then yarn install --frozen-lockfile --network-timeout 100000; \
|
|
||||||
elif [ -f package-lock.json ]; then npm ci; \
|
|
||||||
else echo "Lockfile not found." && exit 1; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
import fetch from "node-fetch";
|
import fetch from "node-fetch";
|
||||||
import fs from "fs/promises";
|
import fs from "fs/promises";
|
||||||
|
|
||||||
const CN_URL =
|
const RAW_CN_URL =
|
||||||
"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json";
|
"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json";
|
||||||
const EN_URL =
|
const CN_URL =
|
||||||
|
"https://cdn.jsdelivr.net/gh/PlexPt/awesome-chatgpt-prompts-zh@main/prompts-zh.json";
|
||||||
|
const RAW_EN_URL =
|
||||||
"https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv";
|
"https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv";
|
||||||
|
const EN_URL =
|
||||||
|
"https://cdn.jsdelivr.net/gh/f/awesome-chatgpt-prompts@main/prompts.csv";
|
||||||
const FILE = "./public/prompts.json";
|
const FILE = "./public/prompts.json";
|
||||||
|
|
||||||
async function fetchCN() {
|
async function fetchCN() {
|
||||||
|
Loading…
Reference in New Issue
Block a user