mirror of
https://github.com/tiennm99/koyeb-example-spring-boot.git
synced 2026-10-13 08:15:46 +00:00
Initial commit
This commit is contained in:
commit
ca988eec2d
12 files changed
+648
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
# Build stage
|
||||
FROM eclipse-temurin:17-jdk-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN ./mvnw package
|
||||
|
||||
# Run stage
|
||||
FROM eclipse-temurin:17-jdk-alpine AS runner
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/*.jar app.jar
|
||||
|
||||
CMD ["java", "-jar", "app.jar"]
|
||||
Reference in new issue
Block a user