generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Administrator
committed
Dec 11, 2024
1 parent
9f94e1b
commit 46a32ef
Showing
2 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters