-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (28 loc) · 858 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
29
30
31
32
33
34
35
36
FROM ubuntu:16.04
ARG quiet='-q -y -o Dpkg::Use-Pty=0'
#Install node.js
RUN apt-get update $quiet &&\
apt-get install $quiet curl &&\
curl -sL https://deb.nodesource.com/setup_10.x | bash - &&\
apt-get update $quiet &&\
apt-get install $quiet nodejs git
ARG BRANCH
#Install jsonata & webpack dependencies
RUN git clone https://github.com/jsonata-js/jsonata.git &&\
cd jsonata &&\
git checkout -b build ${BRANCH} &&\
npm install &&\
npm install --save-dev \
@babel/core \
@babel/plugin-proposal-class-properties \
@babel/plugin-transform-regenerator \
@babel/plugin-transform-runtime \
@babel/preset-env \
babel-loader \
string-replace-loader \
webpack \
webpack-cli
#Copy build files
COPY ./jsonata /jsonata
ARG MODE
RUN cd jsonata && ./node_modules/.bin/webpack