2021-03-10 02:27:37 +00:00
|
|
|
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
|
|
|
|
2021-03-10 17:55:43 +00:00
|
|
|
# Add dependencies
|
2021-03-10 04:12:31 +00:00
|
|
|
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)])"
|
2021-03-10 02:27:37 +00:00
|
|
|
|
2021-03-10 17:55:43 +00:00
|
|
|
# Build app
|
|
|
|
ARG VERSION_TAG=v4.2.0
|
|
|
|
|
|
|
|
WORKDIR /app/code
|
|
|
|
RUN git clone https://github.com/terminusdb/terminusdb . --branch "${VERSION_TAG}" --single-branch && make
|
2021-03-10 04:58:40 +00:00
|
|
|
|
2021-03-10 17:55:43 +00:00
|
|
|
# Setup start script, add clouron manifest
|
2021-03-10 17:07:14 +00:00
|
|
|
COPY start.sh /app/code/
|
2021-03-10 02:27:37 +00:00
|
|
|
RUN chmod +x /app/code/start.sh
|
|
|
|
|
2021-03-10 17:07:14 +00:00
|
|
|
COPY CloudronManifest.json /app/code/
|
|
|
|
|
2021-03-10 04:58:40 +00:00
|
|
|
CMD /app/code/start.sh
|
2021-03-10 02:27:37 +00:00
|
|
|
|