FROM ubuntu:15.10
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections 
RUN apt-get install -y oracle-java8-installer 
RUN apt-get install -y lttng-tools lttng-modules-dkms liblttng-ust-dev
RUN apt-get install -y libc++1 libc++-dev libunwind-dev 
COPY . /echoserver
WORKDIR /echoserver
RUN chmod +x sample.sh
EXPOSE 8507
ENTRYPOINT ["./sample.sh"]
