ABAO77 commited on
Commit
3c537af
·
verified ·
1 Parent(s): ea1e28c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -21,9 +21,10 @@ RUN apt-get update && \
21
  ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
22
  ENV PATH="$JAVA_HOME/bin:$PATH"
23
 
24
- # Configure JVM to work better in containers
25
- # These settings help prevent metaspace allocation issues
26
- ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -XX:InitialRAMPercentage=25.0"
 
27
 
28
  # Verify installations
29
  RUN python3 --version && \
 
21
  ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
22
  ENV PATH="$JAVA_HOME/bin:$PATH"
23
 
24
+ # Configure JVM to work better in containers with minimal memory
25
+ # These settings help prevent metaspace and code cache allocation issues
26
+ # Note: We intentionally don't use JAVA_TOOL_OPTIONS to avoid conflicts
27
+ # ENV JAVA_TOOL_OPTIONS="-XX:+UseContainerSupport"
28
 
29
  # Verify installations
30
  RUN python3 --version && \