Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Simplify remote plugin dockerfile.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
  • Loading branch information
AndrienkoAleksandr committed Aug 19, 2019
1 parent 12da4c2 commit beab63e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions dockerfiles/theia-endpoint-runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
# Contributors:
# Red Hat, Inc. - initial API and implementation

FROM ${BUILD_ORGANIZATION}/${BUILD_PREFIX}-theia:${BUILD_TAG} as node-dependencies-provider
FROM ${BUILD_ORGANIZATION}/${BUILD_PREFIX}-theia:${BUILD_TAG} as builder

# Image to build remote binary based on che-theia node_dependencies.
FROM node:10.16-alpine as builder
USER root

COPY --from=node-dependencies-provider /home/theia/node_modules /home/theia/node_modules

RUN apk add --update --no-cache && \
cd home/theia && \
RUN cd /home/theia && \
yarn global add nexe@3.3.2 && nexe -v && \
# Build remote binary with node runtime 10.14.2 and che-theia node dependencis. nexe iclude to the binary only
# used dependencies, that's why binary should not be to much big.
Expand Down

0 comments on commit beab63e

Please sign in to comment.