Remove useless wait-for-it script
This commit is contained in:
@@ -15,12 +15,7 @@ EXPOSE 8080
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk add --no-cache bash netcat-openbsd
|
|
||||||
|
|
||||||
COPY --from=build /app/build/libs/*.jar app.jar
|
COPY --from=build /app/build/libs/*.jar app.jar
|
||||||
|
|
||||||
COPY ./api-init/wait-for-it.sh ./wait-for-it.sh
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||||
RUN chmod +x wait-for-it.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["bash", "./wait-for-it.sh", "mongodb:27017", "--timeout=60", "--strict", "--", "java", "-jar", "app.jar"]
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,10 @@ package be.naaturel.boardmateapi.common.models;
|
|||||||
|
|
||||||
public class Piece {
|
public class Piece {
|
||||||
|
|
||||||
private String notation;
|
private final String notation;
|
||||||
private String name;
|
|
||||||
|
|
||||||
public Piece(){
|
|
||||||
|
|
||||||
|
public Piece(String notation){
|
||||||
|
this.notation = notation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user