@@ -47,8 +47,7 @@ ENV DISABLE_V8_COMPILE_CACHE=1
4747# ENV npm_config_arch=x64
4848RUN mkdir -p .build \
4949 && npm config set registry "$NPM_REGISTRY" \
50- && npm ci \
51- && npm run compile
50+ && npm ci
5251
5352# check that the provided codeVersion is the correct one for the given codeCommit
5453RUN commitVersion=$(cat package.json | jq -r .version) \
@@ -76,24 +75,26 @@ RUN npm run gulp compile-build \
7675 && npm run gulp vscode-web-min-ci \
7776 && npm run gulp vscode-reh-linux-x64-min-ci
7877
78+ # RUN ls -l
79+
7980# config for first layer needed by blobserve
8081# this custom urls will be then replaced by blobserve.
8182# Check pkg/blobserve/blobserve.go, `inlineVars` method
8283RUN cp /vscode-web/out/vs/gitpod/browser/workbench/workbench.html /vscode-web/index.html \
83- && cp /vscode-web/out/vs/gitpod/browser/workbench/callback.html /vscode-web/callback.html \
84- && sed -i -e "s/{{VERSION}}/$CODE_QUALITY-$CODE_COMMIT/g" /vscode-web/index.html
84+ && cp /vscode-web/out/vs/gitpod/browser/workbench/callback.html /vscode-web/callback.html \
85+ && sed -i -e "s/{{VERSION}}/$CODE_QUALITY-$CODE_COMMIT/g" /vscode-web/index.html
8586
8687# cli config: alises to gitpod-code
8788RUN cp /vscode-reh-linux-x64/bin/remote-cli/gitpod-code /vscode-reh-linux-x64/bin/remote-cli/code \
88- && cp /vscode-reh-linux-x64/bin/remote-cli/gitpod-code /vscode-reh-linux-x64/bin/remote-cli/gp-code \
89- && cp /vscode-reh-linux-x64/bin/remote-cli/gitpod-code /vscode-reh-linux-x64/bin/remote-cli/open
89+ && cp /vscode-reh-linux-x64/bin/remote-cli/gitpod-code /vscode-reh-linux-x64/bin/remote-cli/gp-code \
90+ && cp /vscode-reh-linux-x64/bin/remote-cli/gitpod-code /vscode-reh-linux-x64/bin/remote-cli/open
9091
9192# grant write permissions for built-in extensions
9293RUN chmod -R ugo+w /vscode-reh-linux-x64/extensions
9394
9495FROM scratch
9596# copy static web resources in first layer to serve from blobserve
96- COPY --from=code_builder --chown=33333:33333 /gp-code / /ide/
97+ COPY --from=code_builder --chown=33333:33333 /vscode-web / /ide/
9798COPY --from=code_builder --chown=33333:33333 /vscode-reh-linux-x64/ /ide/
9899
99100ARG CODE_VERSION
0 commit comments