-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (39 loc) · 1.03 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:23.04 AS base
RUN set -e
ENV DEBIAN_FRONTEND=noninteractive
# Install packages
RUN apt-get -y update
RUN apt-get install -y --no-install-recommends\
python3\
g++\
gcc\
make\
time
FROM base AS base-git
RUN apt-get install -y --no-install-recommends\
cmake\
git
FROM base-git AS artifact-pre-1
# copy the artifact
COPY . /opt/rv23-experiments
# initialize vamos-buffers
FROM artifact-pre-1 AS artifact-pre-2
WORKDIR /opt/rv23-experiments/
RUN git clean -xdf
RUN git submodule update --init -- vamos-buffers
WORKDIR /opt/rv23-experiments/vamos-buffers
RUN git clean -xdf
RUN cmake . -DCMAKE_BUILD_TYPE=Release
RUN make -j2
FROM artifact-pre-2 AS artifact-pre-3
WORKDIR /opt/rv23-experiments/
RUN cmake . -DCMAKE_BUILD_TYPE=Release
RUN make -j2
FROM artifact-pre-3 AS artifact-plotting
RUN apt-get install -y --no-install-recommends\
python3-matplotlib\
python3-pandas\
python3-seaborn
FROM artifact-plotting as artifact
#COPY --from=vamos /opt/vamos /opt/vamos
WORKDIR /opt/rv23-experiments