diff --git a/Dockerfile.template b/Dockerfile.template index 572ab41..7b3f09b 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -1,9 +1,12 @@ FROM gradle:jdk17-alpine as builder +ARG MODULE WORKDIR /workspace/app COPY . /workspace/app/ RUN chmod +x gradlew + RUN ls -la /workspace/app -RUN ./gradlew build -p ${MODULE} + +RUN ./gradlew build -p $MODULE FROM openjdk:17-ea-17-slim RUN groupadd -r appuser && useradd -r -g appuser appuser