Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Reduced the hardcoded wait time.
  • Loading branch information
nhkhai committed May 1, 2024
1 parent 95e4704 commit 54b2d32
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 @@ -82,8 +82,8 @@ COPY --from=builder /opt/app/target/*.jar /opt/app/*.jar
# The ENTRYPOINT instruction specifies the command that should be run.
# ENTRYPOINT ["java"]
# ENTRYPOINT [ "./mvnw" ]
# ENTRYPOINT service postgresql start && sleep 10 && gosu postgres psql -c "CREATE DATABASE the_review_room;" && java -jar /opt/app/*.jar
ENTRYPOINT service postgresql start && sleep 10 && java -jar /opt/app/*.jar
# ENTRYPOINT service postgresql start && sleep 5 && gosu postgres psql -c "CREATE DATABASE the_review_room;" && java -jar /opt/app/*.jar
ENTRYPOINT service postgresql start && sleep 5 && java -jar /opt/app/*.jar
# ENTRYPOINT ["/bin/bash"]

# The CMD instruction provides default arguments to the ENTRYPOINT command.
Expand Down

0 comments on commit 54b2d32

Please sign in to comment.