From beab63e2a9ad5e496e6e5193de4358b1a10f7869 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Mon, 19 Aug 2019 14:25:13 +0300 Subject: [PATCH] Simplify remote plugin dockerfile. Signed-off-by: Oleksandr Andriienko --- dockerfiles/theia-endpoint-runtime/Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dockerfiles/theia-endpoint-runtime/Dockerfile b/dockerfiles/theia-endpoint-runtime/Dockerfile index 761bc8d5c..249630f06 100644 --- a/dockerfiles/theia-endpoint-runtime/Dockerfile +++ b/dockerfiles/theia-endpoint-runtime/Dockerfile @@ -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.