Skip to content
Permalink
Browse files

build: first cut of dockerfile

  • Loading branch information...
bpowers committed Feb 16, 2019
1 parent 2a42517 commit 1c04a9415d7965530f74d26e844ea3d178549903
Showing with 26 additions and 1 deletion.
  1. +2 −0 .dockerignore
  2. +23 −0 Dockerfile
  3. +1 −1 support/install_all_configs
@@ -0,0 +1,2 @@
/.git
*~
@@ -0,0 +1,23 @@
# docker build -t bpowers/mesh .
FROM ubuntu:18.04
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 support/install_all_configs PREFIX=/usr/local
@@ -6,6 +6,6 @@ for n in 0 1 2; do
./configure --no-debug --randomization $n $meshing --suffix
make clean
make -j5 lib test
sudo make install
sudo make install $1
done
done

0 comments on commit 1c04a94

Please sign in to comment.
You can’t perform that action at this time.