Remove useless wait-for-it script

This commit is contained in:
2025-12-11 23:38:30 +01:00
parent 35f5978849
commit 47e812d710
2 changed files with 4 additions and 10 deletions

View File

@@ -15,12 +15,7 @@ EXPOSE 8080
WORKDIR /app
RUN apk add --no-cache bash netcat-openbsd
COPY --from=build /app/build/libs/*.jar app.jar
COPY ./api-init/wait-for-it.sh ./wait-for-it.sh
RUN chmod +x wait-for-it.sh
ENTRYPOINT ["bash", "./wait-for-it.sh", "mongodb:27017", "--timeout=60", "--strict", "--", "java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]

View File

@@ -2,11 +2,10 @@ package be.naaturel.boardmateapi.common.models;
public class Piece {
private String notation;
private String name;
public Piece(){
private final String notation;
public Piece(String notation){
this.notation = notation;
}
@Override