Build app from source

This commit is contained in:
Joe
2021-03-09 22:12:31 -06:00
parent 5392395115
commit f7d6bc64a8
3 changed files with 10 additions and 8 deletions

View File

@ -4,14 +4,16 @@ ARG VERSION=4.2.0
WORKDIR /app/code
RUN curl -L https://github.com/terminusdb/terminusdb/releases/download/v${VERSION}/terminusdb_${VERSION}_amd64.deb -o terminusdb.deb \
&& apt-get update \
&& apt-get install ./terminusdb.deb -y \
&& apt-get clean \
&& rm terminusdb.deb
RUN sudo apt-add-repository ppa:swi-prolog/stable && apt-get update && apt-get install cargo swi-prolog -y && apt-get clean
RUN swipl -g "pack_install(terminus_store_prolog, [interactive(false)])"
RUN git clone https://github.com/terminusdb/terminusdb \
&& cd terminusdb \
&& make
COPY start.sh /app/code/start.sh
RUN chmod +x /app/code/start.sh
RUN mkdir -p /app/data
CMD start.sh