FROM ubuntu:latest

WORKDIR /home

# Install required libraries, download benchmark suite and untar files
RUN apt-get update && apt-get install -y \
  wget \
&& wget -nv http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz \
&& tar -xf NPB3.3.1.tar.gz \
&& rm NPB3.3.1.tar.gz \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /home/NPB3.3.1


FROM ubuntu:xenial

ADD http://www.nas.nasa.gov/assets/npb/NPB3.3.1.tar.gz /home
RUN cd /home && tar xf NPB3.3.1.tar.gz && rm NPB3.3.1.tar.gz
WORKDIR /home/NPB3.3.1

Set Ubuntu version to Xenial, fetch NPB sources using Dockerfile ADD command.
feat(npb): Set Ubuntu version to Xenial, fetch NPB sources using Dockerfile ADD command.
