Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Fixed the duplicate command chaining And operator.
  • Loading branch information
nhkhai committed May 3, 2024
1 parent 0786974 commit 7e3b9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7e3b9c6

Please sign in to comment.