Build app from source
This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user