Attempt to reduce memory usage in Docker
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
16e2a6a895
commit
d80ade5ef6
1 changed files with 1 additions and 2 deletions
|
@ -14,6 +14,5 @@ RUN /home/maven/src/mvnw -DskipTests package
|
||||||
FROM openjdk:8-jdk-slim
|
FROM openjdk:8-jdk-slim
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
COPY --from=builder /home/maven/src/target/budget-api.jar budget-api.jar
|
COPY --from=builder /home/maven/src/target/budget-api.jar budget-api.jar
|
||||||
ENTRYPOINT ["/usr/local/openjdk-8/bin/java", "-Xmx3g", "-jar", "/budget-api.jar"]
|
ENTRYPOINT ["/usr/local/openjdk-8/bin/java", "-XX:+UnlockExperimentalVMOptions", "-XX:+UseCGroupMemoryLimitForHeap", "-XX:MaxRAMFraction=1", "-Xmx256m", "-jar", "/budget-api.jar"]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue