Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
|
|
|
|
| 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 && \
|