From 8c5445a26da691efb0a593cb5f4cf52612bb5eb8 Mon Sep 17 00:00:00 2001 From: milkice Date: Sat, 20 Nov 2021 17:43:31 +0800 Subject: [PATCH] Fix problems in Dockerfile (#1059) Fix js heap out of memory Fix can't find cloudreve for cloudreve has been renamed to Cloudreve --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b9aa08b..cbb7dca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,9 @@ COPY ./assets /assets WORKDIR /assets +# If encountered problems like JavaScript heap out of memory, please uncomment the following options +ENV NODE_OPTIONS --max_old_space_size=4096 + # yarn repo connection is unstable, adjust the network timeout to 10 min. RUN set -ex \ && yarn install --network-timeout 600000 \ @@ -42,7 +45,7 @@ ARG TZ="Asia/Shanghai" ENV TZ ${TZ} -COPY --from=be-builder /go/bin/cloudreve /cloudreve/cloudreve +COPY --from=be-builder /go/bin/Cloudreve /cloudreve/cloudreve RUN apk upgrade \ && apk add bash tzdata \