Update Dockerfile
Browse files1 unmodified line234567891 unmodified lineWORKDIR /appRUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \git clone "https://subjectid1:${SECRET_VALUE}@github.com/subjectid1/dms.git"WORKDIR /app/dmsRUN chmod +x ./gradlewRUN ./gradlew bootJar1 unmodified line2345678910111213141516171819202122231 unmodified lineWORKDIR /appRUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \git clone "https://subjectid1:${SECRET_VALUE}@github.com/subjectid1/dms.git" targetWORKDIR /app/targetRUN chmod +x ./gradlewRUN ./gradlew bootJarFrom eclipse-temurin:17-jre-alpine AS runtimeENV JAVA_OPTS="-XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0"COPY --from=build app/target/build/libs/*.jar app/app.jarWORKDIR appUSER 10014EXPOSE 7860ENTRYPOINT ["java", "-jar", "app.jar" "--server.port=7860”]
Dockerfile+17-3