Skip to content

Commit

Permalink
Add dockerfie and github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JonMike8 committed Nov 23, 2024
1 parent d98c0ae commit 24554c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Empty file.
12 changes: 12 additions & 0 deletions MavenBack/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM maven:3.9.4-eclipse-temurin-21 AS build

WORKDIR /app
COPY pom.xml ./
COPY src ./src
RUN mvn clean package -DskipTests

FROM eclipse-temurin:21-jre-alpine
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app/app.jar"]

0 comments on commit 24554c6

Please sign in to comment.