From e6a5c754c3d9a2820a244ae6cd501a61c05b8a81 Mon Sep 17 00:00:00 2001 From: jectpro Date: Thu, 2 Nov 2023 02:17:32 +0800 Subject: [PATCH] Fix docker compilation failed Former-commit-id: ad5122de1d83e78201f91f500768fbfa7fd24b06 --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4b81c01a..b5262de6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM node:14-slim as builder -RUN apt-get update && apt-get install -y jq curl wget python +FROM node:18-slim as builder +RUN apt-get update && apt-get install -y jq curl wget python3 WORKDIR /app ### Get the latest release source code tarball @@ -13,7 +13,8 @@ RUN yarn --network-timeout 1000000 ### Separate `yarn build` layer as a workaround for devices with low RAM. ### If build fails due to OOM, `yarn install` layer will be already cached. -RUN yarn build +RUN yarn \ + && yarn build ### Nginx or Apache can also be used, Caddy is just smaller in size FROM caddy:latest