forked from eclipse-che/che-workspace-loader
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 902 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright (c) 2018-2018 Red Hat, Inc.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which is available at http://www.eclipse.org/legal/epl-2.0.html
#
# SPDX-License-Identifier: EPL-2.0
# This is a Dockerfile allowing to build workspace loader by using a docker container.
# Build step: $ docker build -t eclipse-che-workspace-loader .
# It builds an archive file that can be used by doing later
# $ docker run --rm eclipse-che-workspace-loader | tar -C target/ -zxf -
FROM node:8.16.2
RUN npm i -g [email protected]
COPY package.json /workspace-loader/
COPY yarn.lock /workspace-loader/
RUN cd /workspace-loader && yarn
COPY . /workspace-loader/
RUN cd /workspace-loader && \
yarn run build && \
yarn run test && \
cd target && \
tar zcf /tmp/workspace-loader.tar.gz dist
CMD zcat /tmp/workspace-loader.tar.gz