diff --git a/release/package/amzn-2/Dockerfile b/release/package/amzn-2/Dockerfile index bf733c10f..70ebc7b85 100644 --- a/release/package/amzn-2/Dockerfile +++ b/release/package/amzn-2/Dockerfile @@ -18,7 +18,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/amzn-2.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/amzn-2.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/amzn-2.sh install MEMGRAPH_BUILD_DEPS \ && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/centos-7/Dockerfile b/release/package/centos-7/Dockerfile index 0f39487e0..cc21d0f47 100644 --- a/release/package/centos-7/Dockerfile +++ b/release/package/centos-7/Dockerfile @@ -17,6 +17,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/centos-7.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/centos-7.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/centos-7.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/centos-9/Dockerfile b/release/package/centos-9/Dockerfile index 260ef3fe2..92069baa3 100644 --- a/release/package/centos-9/Dockerfile +++ b/release/package/centos-9/Dockerfile @@ -17,6 +17,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/centos-9.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/centos-9.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/centos-9.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/debian-10/Dockerfile b/release/package/debian-10/Dockerfile index 839e4ad29..269954d4d 100644 --- a/release/package/debian-10/Dockerfile +++ b/release/package/debian-10/Dockerfile @@ -20,6 +20,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/debian-10.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/debian-10.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/debian-10.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/debian-11-arm/Dockerfile b/release/package/debian-11-arm/Dockerfile index 5358b9343..c1279620a 100644 --- a/release/package/debian-11-arm/Dockerfile +++ b/release/package/debian-11-arm/Dockerfile @@ -20,7 +20,8 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/debian-11-arm.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/debian-11-arm.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/debian-11-arm.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph # Create mg user and set as default RUN useradd -m -s /bin/bash mg diff --git a/release/package/debian-11/Dockerfile b/release/package/debian-11/Dockerfile index d1de0bc11..33be0069b 100644 --- a/release/package/debian-11/Dockerfile +++ b/release/package/debian-11/Dockerfile @@ -20,7 +20,8 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/debian-11.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/debian-11.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/debian-11.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph # Create mg user and set as default RUN useradd -m -s /bin/bash mg diff --git a/release/package/debian-12-arm/Dockerfile b/release/package/debian-12-arm/Dockerfile index e938f5972..028b1d00c 100644 --- a/release/package/debian-12-arm/Dockerfile +++ b/release/package/debian-12-arm/Dockerfile @@ -20,6 +20,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/debian-12-arm.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/debian-12-arm.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/debian-12-arm.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/debian-12/Dockerfile b/release/package/debian-12/Dockerfile index 2a5a3f0dc..ce793d47f 100644 --- a/release/package/debian-12/Dockerfile +++ b/release/package/debian-12/Dockerfile @@ -21,7 +21,7 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/debian-12.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/debian-12.sh install MEMGRAPH_BUILD_DEPS \ - && cd / && rm -rf memgraph + && cd .. && rm -rf memgraph # Create mg user and set as default RUN useradd -m -s /bin/bash mg diff --git a/release/package/fedora-36/Dockerfile b/release/package/fedora-36/Dockerfile index 305634afd..04a0f9669 100644 --- a/release/package/fedora-36/Dockerfile +++ b/release/package/fedora-36/Dockerfile @@ -18,6 +18,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/fedora-36.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/fedora-36.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/fedora-36.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/fedora-38/Dockerfile b/release/package/fedora-38/Dockerfile index d5ad573d5..335c22be9 100644 --- a/release/package/fedora-38/Dockerfile +++ b/release/package/fedora-38/Dockerfile @@ -18,6 +18,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/fedora-38.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/fedora-38.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/fedora-38.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/fedora-39/Dockerfile b/release/package/fedora-39/Dockerfile index ef5068431..288f58ed0 100644 --- a/release/package/fedora-39/Dockerfile +++ b/release/package/fedora-39/Dockerfile @@ -18,6 +18,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/fedora-39.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/fedora-39.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/fedora-39.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/rocky-9/Dockerfile b/release/package/rocky-9/Dockerfile index 36c50f9e0..b9ab702bf 100644 --- a/release/package/rocky-9/Dockerfile +++ b/release/package/rocky-9/Dockerfile @@ -18,6 +18,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/rocky-9.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/rocky-9.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/rocky-9.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-18.04/Dockerfile b/release/package/ubuntu-18.04/Dockerfile index c2096dd4f..a4b63f0c1 100644 --- a/release/package/ubuntu-18.04/Dockerfile +++ b/release/package/ubuntu-18.04/Dockerfile @@ -20,6 +20,7 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/ubuntu-18.04.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/ubuntu-18.04.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/ubuntu-18.04.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-20.04/Dockerfile b/release/package/ubuntu-20.04/Dockerfile index a0f4d3b80..c2bb58699 100644 --- a/release/package/ubuntu-20.04/Dockerfile +++ b/release/package/ubuntu-20.04/Dockerfile @@ -20,7 +20,8 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/ubuntu-20.04.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/ubuntu-20.04.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/ubuntu-20.04.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph # Create mg user and set as default RUN useradd -m -s /bin/bash mg diff --git a/release/package/ubuntu-22.04-arm/Dockerfile b/release/package/ubuntu-22.04-arm/Dockerfile index 2bf7789fa..ed404a024 100644 --- a/release/package/ubuntu-22.04-arm/Dockerfile +++ b/release/package/ubuntu-22.04-arm/Dockerfile @@ -20,7 +20,8 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/ubuntu-22.04-arm.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/ubuntu-22.04-arm.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/ubuntu-22.04-arm.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph # Create mg user and set as default RUN useradd -m -s /bin/bash mg diff --git a/release/package/ubuntu-22.04/Dockerfile b/release/package/ubuntu-22.04/Dockerfile index 88f958b9f..1a48b2caf 100644 --- a/release/package/ubuntu-22.04/Dockerfile +++ b/release/package/ubuntu-22.04/Dockerfile @@ -20,7 +20,8 @@ SHELL ["/bin/bash", "-c"] RUN git clone https://github.com/memgraph/memgraph.git \ && cd memgraph \ && ./environment/os/ubuntu-22.04.sh install TOOLCHAIN_RUN_DEPS \ - && ./environment/os/ubuntu-22.04.sh install MEMGRAPH_BUILD_DEPS + && ./environment/os/ubuntu-22.04.sh install MEMGRAPH_BUILD_DEPS \ + && cd .. && rm -rf memgraph # Create mg user and set as default RUN useradd -m -s /bin/bash mg