Last active
October 20, 2015 23:30
-
-
Save mrmagooey/a9e292a541360aba559d to your computer and use it in GitHub Desktop.
Dockerfile for building extempore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:latest | |
# which GitHub branch to build Extempore from | |
ENV EXTEMPORE_GH_BRANCH master | |
# get deps (listed in alphabetical order) | |
RUN apt-get update --yes && apt-get install --yes \ | |
python build-essential curl libasound2-dev unzip && \ | |
apt-get clean && rm -rf /var/lib/apt/lists/* | |
# update cmake | |
RUN curl -L -o cmake-3.2.3-Linux-x86_64.tar.gz https://cmake.org/files/v3.3/cmake-3.3.2.tar.gz | |
RUN tar xzf cmake-3.2.3-Linux-x86_64.tar.gz | |
RUN rm cmake-3.2.3-Linux-x86_64.tar.gz | |
RUN cd cmake* && ./configure && make -j4 && make install | |
# download extempore | |
RUN curl -L -o source.zip http://github.com/digego/extempore/zipball/$EXTEMPORE_GH_BRANCH/ && \ | |
unzip source.zip && \ | |
mv $(ls | grep extempore) /extempore | |
# build extempore | |
RUN mkdir /extempore/cmake-build && cd /extempore/cmake-build && cmake .. && make -j4 && make install | |
# RUN cd /extempore/cmake-build && make aot_stdlib | |
# expose extempore primary & utility process ports | |
EXPOSE 7099 7098 | |
ENTRYPOINT ["extempore"] | |
CMD ["--noaudio"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment