Update Dockerfile
Browse files- Dockerfile +15 -15
Dockerfile
CHANGED
|
@@ -6,20 +6,20 @@ FROM metabase/metabase:latest
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
# Create custom Log4j2 configuration
|
| 10 |
-
RUN
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
# Set Java options for memory management and custom logging
|
| 25 |
ENV JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -Xmx12g -Dlog4j.configurationFile=file:/app/log4j2.xml"
|
|
@@ -56,4 +56,4 @@ VOLUME /data
|
|
| 56 |
RUN chmod -R 777 /data
|
| 57 |
|
| 58 |
# Start Metabase using the proper command
|
| 59 |
-
ENTRYPOINT ["/app/run_metabase.sh"]
|
|
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
# Create custom Log4j2 configuration that drops all log output
|
| 10 |
+
RUN cat <<'EOF' > /app/log4j2.xml
|
| 11 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 12 |
+
<Configuration status="WARN">
|
| 13 |
+
<Appenders>
|
| 14 |
+
<Null name="Null"/>
|
| 15 |
+
</Appenders>
|
| 16 |
+
<Loggers>
|
| 17 |
+
<Root level="OFF">
|
| 18 |
+
<AppenderRef ref="Null"/>
|
| 19 |
+
</Root>
|
| 20 |
+
</Loggers>
|
| 21 |
+
</Configuration>
|
| 22 |
+
EOF
|
| 23 |
|
| 24 |
# Set Java options for memory management and custom logging
|
| 25 |
ENV JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseContainerSupport -XX:MaxRAMPercentage=75.0 -Xmx12g -Dlog4j.configurationFile=file:/app/log4j2.xml"
|
|
|
|
| 56 |
RUN chmod -R 777 /data
|
| 57 |
|
| 58 |
# Start Metabase using the proper command
|
| 59 |
+
ENTRYPOINT ["/app/run_metabase.sh"]
|