Uses multi-stage Docker build to fix copy issue
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
aarbit 2024-07-01 17:22:05 -05:00
parent 9779205be0
commit 6646ba4c54

View File

@ -1,8 +1,8 @@
FROM amazoncorretto:21-alpine-jdk
FROM amazoncorretto:21-alpine-jdk as build
LABEL maintainer="Alex Arbit <aarbit@gmail.com>"
WORKDIR app
WORKDIR /app
COPY build.gradle.kts .
COPY gradlew .
@ -18,7 +18,9 @@ RUN gradle bootJar
RUN ls -al
RUN ls -al /
COPY build/libs/*.jar app.jar
FROM amazoncorretto:21-alpine-jdk
COPY --from=build /app/build/libs/*.jar app.jar
RUN ls -al
EXPOSE 8080