diff --git a/.circleci/config.yml b/.circleci/config.yml index bf47c51..b9f2f68 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: path: target/the-review-room-0.0.1-SNAPSHOT.jar publish: # Also known as the build-and-push. - executor: docker/docker + executor: openjdk-with-postgres steps: - checkout diff --git a/Dockerfile b/Dockerfile index 57bd7f4..e30d2fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,25 +9,25 @@ ENV PORT=9090 EXPOSE 9090 # The JAR file path. -# ARG JAR_FILE=*.jar +ARG JAR_FILE=*.jar # ARG JAR_FILE=the-review-room-0.0.1-SNAPSHOT.jar # Copy the JAR file from the build context into the Docker image. -# COPY target/${JAR_FILE} application.jar +COPY target/${JAR_FILE} application.jar # Copy the source code into the Docker image. -COPY .mvn/ .mvn -COPY mvnw pom.xml ./ +# COPY .mvn/ .mvn +# COPY mvnw pom.xml ./ -COPY src ./src +# COPY src ./src # Modify the permissions of the mvnw script. -RUN chmod +x ./mvnw +# RUN chmod +x ./mvnw #CMD apt-get update -y # Set the default command to run the Java application. #ENTRYPOINT ["java", "-Xmx2048M", "-jar", "/application.jar"] -# ENTRYPOINT ["java","-jar","/application.jar"] -RUN ./mvnw install -DskipTests -CMD ["./mvnw", "spring-boot:run"] +ENTRYPOINT ["java","-jar","/application.jar"] +# RUN ./mvnw install -DskipTests +# CMD ["./mvnw", "spring-boot:run"]