mirror of https://github.com/cloudreve/Cloudreve
Fix problems in Dockerfile (#1059)
Fix js heap out of memory Fix can't find cloudreve for cloudreve has been renamed to Cloudrevepull/1073/head
parent
96b84bb5e5
commit
8c5445a26d
|
@ -5,6 +5,9 @@ COPY ./assets /assets
|
||||||
|
|
||||||
WORKDIR /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.
|
# yarn repo connection is unstable, adjust the network timeout to 10 min.
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& yarn install --network-timeout 600000 \
|
&& yarn install --network-timeout 600000 \
|
||||||
|
@ -42,7 +45,7 @@ ARG TZ="Asia/Shanghai"
|
||||||
|
|
||||||
ENV TZ ${TZ}
|
ENV TZ ${TZ}
|
||||||
|
|
||||||
COPY --from=be-builder /go/bin/cloudreve /cloudreve/cloudreve
|
COPY --from=be-builder /go/bin/Cloudreve /cloudreve/cloudreve
|
||||||
|
|
||||||
RUN apk upgrade \
|
RUN apk upgrade \
|
||||||
&& apk add bash tzdata \
|
&& apk add bash tzdata \
|
||||||
|
|
Loading…
Reference in New Issue