Skip to content

Commit

Permalink
Fixing dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush-Agnihotri committed Nov 3, 2024
1 parent 364ae6d commit 33c8ab1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target/
.git/
.idea/
*.iml
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ RUN mvn dependency:go-offline
COPY src ./src
RUN mvn clean package -DskipTests


FROM openjdk:17-oracle
FROM openjdk:17-jdk-slim

WORKDIR /app

COPY --from=build /app/target/*.jar app.jar
COPY --from=build /app/src/main/resources/static /app/static

EXPOSE 8080

Expand Down

0 comments on commit 33c8ab1

Please sign in to comment.