Reorder things a bit in theia docker file

This commit is contained in:
Kris De Volder
2020-02-28 11:22:46 -08:00
parent 3e7c0f301e
commit 6cdecf767a

View File

@@ -19,13 +19,16 @@ RUN mkdir /theia-app
ADD package.json /theia-app
WORKDIR /theia-app
# using "NODE_OPTIONS=..." to avoid out-of-memory problem in CI
ENV SHELL=/bin/bash \
THEIA_DEFAULT_PLUGINS=local-dir:/theia-app/plugins
ADD plugins /theia-app/plugins
RUN yarn --cache-folder ./ycache && rm -rf ./ycache && \
NODE_OPTIONS="--max_old_space_size=8192" yarn theia build ; \
yarn theia download:plugins
ADD plugins /theia-app/plugins
ENV SHELL=/bin/bash \
THEIA_DEFAULT_PLUGINS=local-dir:/theia-app/plugins
ENTRYPOINT [ "yarn", "theia", "start", "--hostname=0.0.0.0", "/home/project" ]
EXPOSE 3000