forked from plasma-umass/Mesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 723 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
# docker build -t bpowers/mesh .
FROM ubuntu:18.04 as builder
MAINTAINER Bobby Powers <bobbypowers@gmail.com>
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 git submodule update --init --recursive \
&& support/install_all_configs PREFIX=/usr/local
FROM ubuntu:18.04
COPY --from=builder /usr/local/lib/libmesh* /usr/local/lib/
RUN ldconfig