Run your tests

This commit is contained in:
matttttttso 2023-10-16 16:37:26 +09:00
parent 74ab50beef
commit 6bfff33ca7

View file

@ -7,6 +7,9 @@ COPY mvnw pom.xml ./
RUN ./mvnw dependency:resolve RUN ./mvnw dependency:resolve
COPY src ./src COPY src ./src
FROM base as test
RUN ["./mvnw", "test"]
FROM base as development FROM base as development
CMD ["./mvnw", "spring-boot:run", "-Dspring-boot.run.profiles=mysql", "-Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000'"] CMD ["./mvnw", "spring-boot:run", "-Dspring-boot.run.profiles=mysql", "-Dspring-boot.run.jvmArguments='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000'"]