Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mmp committed Jul 30, 2018
1 parent 81fd5fd commit 5a43c9e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
FROM ubuntu:12.04
FROM ubuntu:18.10
MAINTAINER Amit Bakshi <ambakshi@gmail.com>

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -yq
RUN apt-get install -yq python-software-properties
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt-get update -yq
RUN apt-get install -yq build-essential gcc-4.8 g++-4.8 cmake make bison flex libpthread-stubs0-dev
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
RUN echo 2 | update-alternatives --config gcc
RUN apt-get update -yq && apt-get install -yq \
build-essential \
gcc \
g++ \
cmake \
make \
libpthread-stubs0-dev
ADD . /app
WORKDIR /app/build
RUN cmake -G 'Unix Makefiles' ..
CMD ["/usr/bin/make","-j2"]
RUN /usr/bin/make -j8
RUN ./pbrt_test


0 comments on commit 5a43c9e

Please sign in to comment.