-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Cors/#137
- Loading branch information
Showing
7 changed files
with
194 additions
and
277 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Dockerfile | ||
|
||
# Use the specified platform image (in this case, linux/amd64) | ||
# FROM openjdk:17-alpine | ||
# | ||
# # Set the JARFILE argument | ||
# ARG JARFILE=build/libs/*.jar | ||
# | ||
# # Copy the JAR file into the container | ||
# COPY ${JARFILE} app.jar | ||
# | ||
# # Set the entry point for the container | ||
# ENTRYPOINT ["java", "-jar", "/app.jar"] | ||
|
||
# Build Stage | ||
FROM openjdk:17-alpine as builder | ||
WORKDIR /app | ||
COPY . /app | ||
RUN ./gradlew build | ||
|
||
# Final Stage | ||
FROM openjdk:17-alpine | ||
ARG JARFILE=build/libs/*.jar | ||
COPY --from=builder /app/${JARFILE} /app/app.jar | ||
ENTRYPOINT ["java", "-jar", "/app/app.jar"] |
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
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
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
Oops, something went wrong.