Skip to content

Commit

Permalink
conatiner change
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Dec 11, 2024
1 parent 9f94e1b commit 46a32ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
13 changes: 6 additions & 7 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM openjdk:11-jre-slim as build
FROM amazoncorretto:17

WORKDIR /app/
ARG JAR_FILE

FROM openjdk:11-jre-slim
ARG JAR_FILE
COPY --from=build ${JAR_FILE} app.jar
COPY . .

RUN chmod +x ./gradlew

EXPOSE 8081
ENTRYPOINT ["java","-jar","/app.jar"]
ENTRYPOINT [ "./gradlew", "bootRun", "--continuous", "--args=--server.port=8081" ]
10 changes: 0 additions & 10 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,3 @@ dependencies {
tasks.withType<Test> {
useJUnitPlatform()
}

plugins {
id 'com.palantir.docker' version '0.25.0' // Or the latest version
}

docker {
name "${project.name}:${project.version}"
files bootJar.archiveFile
buildArgs(['JAR_FILE': "${bootJar.archiveFileName.get()}"])
}

0 comments on commit 46a32ef

Please sign in to comment.