#specify the base OS
From ubuntu:latest

#Running apt updates on OS
ENV DEBIAN_FRONTEND noninteractive

RUN sed -i -- 's/#deb-src/deb-src/g' /etc/apt/sources.list && sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list

RUN apt-get update -y 

#RUN apt-get upgrade -y


#Running installations on the os

RUN apt-get install git -y 

RUN apt-get install cmake -y

RUN apt-get install g++ -y

RUN apt-get install vim -y

RUN apt-get install wget -y

RUN apt-get build-dep csound -y 


#Running build commands once container starts

CMD git clone https://github.com/csound/csound.git && cd csound && git checkout csound6 && mkdir cs6make && cd cs6make && cmake .. && make -j6 && make install


ENV DEBIAN_FRONTEND teletype