mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-30 03:05:49 +00:00
adding docker.test file
This commit is contained in:
parent
bd7ee57ce6
commit
214d78da5e
2 changed files with 17 additions and 2 deletions
|
@ -9,5 +9,7 @@ COPY . /app
|
|||
# Make port 8080 available to the world outside this container
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT [ "./mvnw" ]
|
||||
CMD [ "test" ]
|
||||
RUN ./mvnw package
|
||||
|
||||
CMD ["java", "-jar", "target/spring-petclinic-3.0.0-SNAPSHOT.jar"]
|
||||
|
||||
|
|
13
Dockerfile.test
Normal file
13
Dockerfile.test
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM openjdk:21-jdk
|
||||
|
||||
# Set the working directory to /app
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the current directory contents into the container at /app
|
||||
COPY . /app
|
||||
|
||||
# Make port 8080 available to the world outside this container
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT [ "./mvnw" ]
|
||||
CMD [ "test" ]
|
Loading…
Reference in a new issue