Skip to content

Commit

Permalink
Test docker actions #20, trying to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sabexzero committed Apr 20, 2024
1 parent d88d467 commit 324b66b
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ FROM gradle:latest AS build

WORKDIR /app

COPY build.gradle .
COPY settings.gradle .
COPY gradle ./gradle/

COPY src ./src/
COPY lib/build.gradle /app/
COPY lib/settings.gradle /app/
COPY lib/gradle /app/gradle/
COPY lib/src /app/src/

RUN gradle wrapper
RUN chmod +x gradlew
RUN ./gradlew lib:build
RUN ./gradlew build

FROM openjdk:latest

WORKDIR /app

COPY --from=build /app/build/libs/*.jar app.jar
COPY --from=build /app/lib/build/libs/*.jar app.jar

EXPOSE 8080

CMD ["java", "-jar", "app.jar"]
CMD ["java", "-jar", "app.jar"]

0 comments on commit 324b66b

Please sign in to comment.