forked from plasma-umass/Mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 677 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
# docker build -t bpowers/mesh .
FROM ubuntu:18.04 as builder
MAINTAINER Bobby Powers <[email protected]>
RUN apt-get update && apt-get install -y \
build-essential \
git \
gcc-8 \
g++-8 \
python3 \
sudo \
&& rm -rf /var/lib/apt/lists/* \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10 \
&& rm -rf /usr/local/lib/python3.6
WORKDIR /src
COPY . .
ENV PREFIX /usr/local
RUN support/install_all_configs PREFIX=/usr/local
FROM ubuntu:18.04
COPY --from=builder /usr/local/lib/libmesh* /usr/local/lib/
RUN ldconfig