fix: null in unit testing
This commit is contained in:
parent
b8fd649ccf
commit
9e2b38e205
2 changed files with 19 additions and 3 deletions
|
|
@ -2,7 +2,21 @@ FROM maven:3.9.9-amazoncorretto-21-debian AS build
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./build/libs/ilp-coursework-0.0.1-SNAPSHOT.jar app.jar
|
||||
COPY gradlew .
|
||||
COPY gradle gradle
|
||||
COPY build.gradle .
|
||||
COPY settings.gradle .
|
||||
|
||||
RUN chmod +x gradlew
|
||||
|
||||
COPY src src
|
||||
RUN ./gradlew build -x test --no-daemon
|
||||
|
||||
FROM amazoncorretto:21-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/build/libs/*.jar app.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue