Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Removed the postgresql-contrib install as it is not needed.
  • Loading branch information
nhkhai committed May 3, 2024
1 parent 7b9f54e commit be722ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ FROM eclipse-temurin:21-jdk-jammy
# RUN addgroup usergroup; adduser --ingroup usergroup --disabled-password myuser;

# Install PostgreSQL and change PostgreSQL authentication to trust.
# Install the PostgreSQL database and the Gosu tool. The Gosu tool is used to step down from root to a non-privileged user during the Docker image build process.
RUN apt-get update && apt-get install -y postgresql postgresql-contrib gosu
# Install the PostgreSQL package and the Gosu tool. The Gosu tool is used to step down from root to a non-privileged user during the Docker image build process.
RUN apt-get update && apt-get install -y postgresql gosu

# Start the PostgreSQL service and create a new database used by the application, then change the PostgreSQL authentication method to trust and restart the PostgreSQL service.
RUN service postgresql start && \
Expand Down

0 comments on commit be722ce

Please sign in to comment.