forked from subgraph/Vega
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (26 loc) · 646 Bytes
/
Dockerfile
File metadata and controls
40 lines (26 loc) · 646 Bytes
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
37
38
# first stage, build Vega
FROM ubuntu:xenial
WORKDIR /vega
ADD . /vega
RUN apt-get update && apt-get install -y \
libwebkitgtk-1.0 \
openjdk-8-jre-headless \
ant \
python3 \
python3-pip \
git \
xvfb \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install py4j
RUN ant
# second stage, extract Vega
FROM ubuntu:xenial
WORKDIR /vega
RUN apt-get update && apt-get install -y \
unzip \
openjdk-8-jre-headless \
libwebkitgtk-1.0 \
xvfb \
&& rm -rf /var/lib/apt/lists/*
COPY --from=0 /vega/build/stage/I.VegaBuild/VegaBuild-linux.gtk.x86_64.zip .
RUN unzip VegaBuild-linux.gtk.x86_64.zip -d .