Skip to content

Commit

Permalink
Add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
yousofkortam committed Jul 11, 2024
1 parent 4e9c32e commit 1804912
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:latest AS build
LABEL authors="yousof"

RUN apt-get update
RUN apt-get install -y maven openjdk-17-jdk

COPY . .

RUN mvn clean package -DskipTests

FROM openjdk:17-jdk-slim

EXPOSE 8080

COPY --from=build /target/gpa-genius-0.0.1-SNAPSHOT.war app.war

ENTRYPOINT ["java", "-jar", "app.jar"]
Empty file removed test.txt
Empty file.

0 comments on commit 1804912

Please sign in to comment.