Skip to content

Commit 6e6faec

Browse files
authored
Merge pull request #255 from Yidadaa/docker-fix
fix: docker build
2 parents fe9dd88 + e7e39ba commit 6e6faec

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ RUN apk add --no-cache libc6-compat
66

77
WORKDIR /app
88

9-
COPY package.json yarn.lock* package-lock.json* ./
9+
COPY package.json yarn.lock ./
1010

11-
RUN \
12-
if [ -f yarn.lock ]; then yarn install --frozen-lockfile --network-timeout 100000; \
13-
elif [ -f package-lock.json ]; then npm ci; \
14-
else echo "Lockfile not found." && exit 1; \
15-
fi
11+
RUN yarn install
1612

1713
FROM base AS builder
1814

scripts/fetch-prompts.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import fetch from "node-fetch";
22
import fs from "fs/promises";
33

4-
const CN_URL =
4+
const RAW_CN_URL =
55
"https://raw.githubusercontent.com/PlexPt/awesome-chatgpt-prompts-zh/main/prompts-zh.json";
6-
const EN_URL =
6+
const CN_URL =
7+
"https://cdn.jsdelivr.net/gh/PlexPt/awesome-chatgpt-prompts-zh@main/prompts-zh.json";
8+
const RAW_EN_URL =
79
"https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv";
10+
const EN_URL =
11+
"https://cdn.jsdelivr.net/gh/f/awesome-chatgpt-prompts@main/prompts.csv";
812
const FILE = "./public/prompts.json";
913

1014
async function fetchCN() {

0 commit comments

Comments
 (0)