From fbb6595b4d69e24577b5e5835d3bdec0cb998a32 Mon Sep 17 00:00:00 2001 From: "Andrew W. Harn" Date: Mon, 16 Oct 2023 09:49:44 -0400 Subject: [PATCH] I don't know why this fixes it but it does Signed-off-by: Andrew W. Harn --- ze/theia-slim/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ze/theia-slim/Dockerfile b/ze/theia-slim/Dockerfile index 433ae54..d49035b 100644 --- a/ze/theia-slim/Dockerfile +++ b/ze/theia-slim/Dockerfile @@ -12,9 +12,12 @@ FROM node:${NODE_VERSION}-alpine RUN apk add --no-cache curl make pkgconfig gcc g++ python3 libx11-dev libxkbfile-dev libsecret-dev WORKDIR /home/theia ADD buildPackageJson.js ./buildPackageJson.js -RUN node buildPackageJson.js ${THEIA_VERSION} > package.json +RUN node --experimental-fetch buildPackageJson.js ${THEIA_VERSION} > package.json ARG GITHUB_TOKEN -RUN yarn --pure-lockfile && \ + +# First yarn generates the lockfile, second one installs things. Don't ask why this is necessary, I don't know either -_- +RUN yarn && \ + yarn && \ NODE_OPTIONS="--max_old_space_size=4096" yarn theia build && \ yarn theia download:plugins && \ yarn --production && \ @@ -23,7 +26,8 @@ RUN yarn --pure-lockfile && \ echo *.ts.map >> .yarnclean && \ echo *.spec.* >> .yarnclean && \ yarn autoclean --force && \ - yarn cache clean + yarn cache clean && \ + rm -f yarn.lock # Uncomment the following lines to install Zowe Explorer in the container # ARG ZOWE_EXPLORER_VERSION=2.9.2 # RUN cd /home/theia/plugins && \