Rearrange Dockerfile build order to avoid rebuilding deps when updating versions
This commit is contained in:
parent
13dfae89e9
commit
9e4e79d045
@ -4,7 +4,7 @@
|
|||||||
"author": "TerminusDB",
|
"author": "TerminusDB",
|
||||||
"description": "TerminusDB is an open-source graph database and document store. It is designed for collaboratively building data-intensive applications and knowledge graphs.",
|
"description": "TerminusDB is an open-source graph database and document store. It is designed for collaboratively building data-intensive applications and knowledge graphs.",
|
||||||
"tagline": "If you want to collaborate with colleagues or build data-intensive applications, nothing will make you more productive.",
|
"tagline": "If you want to collaborate with colleagues or build data-intensive applications, nothing will make you more productive.",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
13
Dockerfile
13
Dockerfile
@ -1,15 +1,16 @@
|
|||||||
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
||||||
|
|
||||||
ARG VERSION=4.2.0
|
# Add dependencies
|
||||||
|
|
||||||
WORKDIR /app/code
|
|
||||||
|
|
||||||
RUN sudo apt-add-repository ppa:swi-prolog/stable && apt-get update && apt-get install cargo swi-prolog -y && apt-get clean
|
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 swipl -g "pack_install(terminus_store_prolog, [interactive(false)])"
|
||||||
RUN git clone https://github.com/terminusdb/terminusdb . && make
|
|
||||||
|
|
||||||
RUN mkdir -p /app/data
|
# 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
|
||||||
|
|
||||||
|
# Setup start script, add clouron manifest
|
||||||
COPY start.sh /app/code/
|
COPY start.sh /app/code/
|
||||||
RUN chmod +x /app/code/start.sh
|
RUN chmod +x /app/code/start.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user