From 39bc3de25a70e831fc44b81875f85b545bdf2afa Mon Sep 17 00:00:00 2001 From: Ng Heng Khai Date: Mon, 13 May 2024 03:50:22 +0800 Subject: [PATCH] Update Dockerfile Updated script. --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 371c83f..336ed07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,11 @@ FROM eclipse-temurin:21-jdk-jammy SHELL ["/bin/bash", "-c"] # Install Node.JS and NPM via NVM. -RUN /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && source ~/.bashrc && nvm install v20.13.1 && nvm use v20.13.1" +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash && \ + export NVM_DIR="$HOME/.nvm" && \ + [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \ + nvm install v20.13.1 && \ + nvm use v20.13.1 # Install PostgreSQL and change PostgreSQL authentication to trust. # Install the PostgreSQL package. Remove the package lists to reduce the image size.