Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
increase node memory size when building
Browse files Browse the repository at this point in the history
Fixes #317

This commit increases the `node` memory size when building the application
in the `theia-java`, `theia-python` and `theia-ruby` images.

Signed-off-by: vince-fugnitto <[email protected]>
  • Loading branch information
vince-fugnitto committed Mar 18, 2020
1 parent 206b845 commit 140a9a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion theia-java-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ARG version=latest
ADD $version.package.json ./package.json
ARG GITHUB_TOKEN
RUN yarn --cache-folder ./ycache && rm -rf ./ycache && \
yarn theia build ; \
NODE_OPTIONS="--max_old_space_size=4096" yarn theia build ; \
yarn theia download:plugins
EXPOSE 3000
ENV SHELL=/bin/bash \
Expand Down
2 changes: 1 addition & 1 deletion theia-python-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ARG version=latest
ADD $version.package.json ./package.json
ARG GITHUB_TOKEN
RUN yarn --cache-folder ./ycache && rm -rf ./ycache && \
yarn theia build ; \
NODE_OPTIONS="--max_old_space_size=4096" yarn theia build ; \
yarn theia download:plugins
EXPOSE 3000
ENV SHELL=/bin/bash \
Expand Down
3 changes: 2 additions & 1 deletion theia-ruby-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ WORKDIR /home/theia
ADD $version.package.json ./package.json
ARG GITHUB_TOKEN
RUN yarn --cache-folder ./ycache && rm -rf ./ycache
RUN yarn theia build && yarn theia download:plugins
RUN NODE_OPTIONS="--max_old_space_size=4096" yarn theia build ; \
yarn theia download:plugins
EXPOSE 3000
ENV SHELL=/bin/bash \
THEIA_DEFAULT_PLUGINS=local-dir:/home/theia/plugins
Expand Down

0 comments on commit 140a9a1

Please sign in to comment.