diff --git a/release/package/debian-11-arm/Dockerfile b/release/package/debian-11-arm/Dockerfile index e6cedb45d..5358b9343 100644 --- a/release/package/debian-11-arm/Dockerfile +++ b/release/package/debian-11-arm/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/debian-11-arm.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/debian-11-arm.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/debian-11/Dockerfile b/release/package/debian-11/Dockerfile index c8bb4e6fa..d1de0bc11 100644 --- a/release/package/debian-11/Dockerfile +++ b/release/package/debian-11/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/debian-11.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/debian-11.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-20.04/Dockerfile b/release/package/ubuntu-20.04/Dockerfile index 346919440..a0f4d3b80 100644 --- a/release/package/ubuntu-20.04/Dockerfile +++ b/release/package/ubuntu-20.04/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/ubuntu-20.04.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/ubuntu-20.04.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-22.04-arm/Dockerfile b/release/package/ubuntu-22.04-arm/Dockerfile index b2fa6f4f8..2bf7789fa 100644 --- a/release/package/ubuntu-22.04-arm/Dockerfile +++ b/release/package/ubuntu-22.04-arm/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/ubuntu-22.04-arm.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/ubuntu-22.04-arm.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"] diff --git a/release/package/ubuntu-22.04/Dockerfile b/release/package/ubuntu-22.04/Dockerfile index 47570e6ad..88f958b9f 100644 --- a/release/package/ubuntu-22.04/Dockerfile +++ b/release/package/ubuntu-22.04/Dockerfile @@ -22,4 +22,11 @@ RUN git clone https://github.com/memgraph/memgraph.git \ && ./environment/os/ubuntu-22.04.sh install TOOLCHAIN_RUN_DEPS \ && ./environment/os/ubuntu-22.04.sh install MEMGRAPH_BUILD_DEPS +# Create mg user and set as default +RUN useradd -m -s /bin/bash mg +USER mg + +# Fix node +RUN curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash + ENTRYPOINT ["sleep", "infinity"]