From 7e3b9c67bafe60162ba7fc3612ab79bf5e89443a Mon Sep 17 00:00:00 2001 From: Ng Heng Khai Date: Sat, 4 May 2024 04:07:07 +0800 Subject: [PATCH] Update Dockerfile Fixed the duplicate command chaining And operator. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4157402..1bcdbb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ FROM eclipse-temurin:21-jdk-jammy # Install PostgreSQL and change PostgreSQL authentication to trust. # Install the PostgreSQL package. Remove the package lists to reduce the image size. -RUN apt-get update && apt-get install -y postgresql && && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y postgresql && rm -rf /var/lib/apt/lists/* # As a security best practice, switch to a non-root user with user privileges instead of root privileges. # The USER Dockerfile instruction sets the preferred user name (or UID) and optionally the user group (or GID) while running the image — and for any subsequent RUN, CMD, or ENTRYPOINT instructions.