Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 672 Bytes
FROM gradle:jdk8 AS build-env
COPY --chown=gradle:gradle . .
# People apparently use windows hosts
RUN apt-get update && apt-get install -y dos2unix
RUN ["dos2unix", "gradlew"]
RUN ./gradlew --no-daemon :app:shadowJar
RUN cp app/build/libs/*all.jar dogbin.jar
FROM openjdk:8-jre-alpine
RUN apk --no-cache add curl
COPY --from=build-env /home/gradle/dogbin.jar dogbin.jar
COPY documents/ /documents
# "-XX:InitialRAMFraction=2", "-XX:MinRAMFraction=2", "-XX:MaxRAMFraction=2"
CMD ["java", "-server", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-XX:+UseG1GC", "-XX:MaxGCPauseMillis=100", "-XX:+UseStringDeduplication", "-jar", "dogbin.jar"]
You can’t perform that action at this time.