-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.build
50 lines (36 loc) · 979 Bytes
/
Dockerfile.build
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
49
50
# STAGE: main stage with all needed development tools
FROM ubuntu:22.04 as build
RUN apt update
# Install wget and curl
RUN apt install -y \
curl \
wget
RUN mkdir -p /opt/ifc-to-xkt
WORKDIR /opt/ifc-to-xkt
# Install UPX binary packing tool
RUN apt install -y \
upx
# Install GCC 11
RUN apt install -y \
make \
gcc-11 \
g++-11
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
# Install Eigen math library
RUN apt install -y \
libeigen3-dev
# Install nanoflann kd-tree library
RUN apt install -y \
libnanoflann-dev
# Install the FMT fast-output library
RUN apt install -y \
libfmt-dev
# Copy the code: C++ component mesh deduplicator
RUN mkdir -p /opt/fastdude
COPY fastdude /opt/fastdude
# Compile the code: C++ component mesh deduplicator
WORKDIR /opt/fastdude
RUN make -j 8 todo
RUN upx fastdude
ENTRYPOINT [ "tail", "-f", "/dev/null" ]