Skip to content

Commit

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

WORKDIR /app

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

COPY src ./src/

RUN gradle wrapper
RUN chmod +x gradlew
Expand All @@ -15,8 +16,8 @@ FROM openjdk:latest

WORKDIR /app

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

EXPOSE 8080

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

0 comments on commit 2f4a038

Please sign in to comment.