diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index daf0a48ef..000000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -# Use an official OpenJDK runtime as a parent image -FROM eclipse-temurin:17-jdk-jammy - -# Set the working directory in the container -WORKDIR /app - -# Copy the compiled JAR file from the build stage -COPY /target/*.jar /app/petclinic.jar -#COPY .mvn/ .mvn/ -#COPY mvnw pom.xml ./ -#Run the dependecies on the image -#RUN ./mvnw dependency:resolve - -#COPY soruce code from local to the image -#COPY src ./src - -# Specify the command to run on container start -#CMD ["mvnw", "spring-boot:run"] -CMD ["java","-jar","/app/petclinic.jar"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index bc6ebe043..7104a0a43 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,13 +19,13 @@ pipeline { } } - stage ('Build a Docker Image') { - steps { - // Build a Docker image - sh 'docker build -t petclinic:auto .' + // stage ('Build a Docker Image') { + // steps { + // // Build a Docker image + // sh 'docker build -t petclinic:auto .' - } - } + // } + // } stage ('Archive test results') { steps { //Archive the test results