Uses multi-stage Docker build to fix copy issue
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
9779205be0
commit
6646ba4c54
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user