Kafkatorio/modules/events-server-web/docker/Dockerfile
Lazzexus ba9cbe5afe Reduce memory use of the JVM services
The services now run on Java 17, with a periodic G1 GC that returns unused
heap to the OS when idle. Previously Java 11 kept the committed heap, so
events-processors held 5.5 GB while its live data was ~250 MB.

All RocksDB state stores now share one bounded block cache and write buffer
(ROCKSDB_TOTAL_MEMORY_MB, default 256 MB), instead of each of the ~45 stores
having its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:31:04 +01:00

19 lines
296 B
Docker

# syntax=docker/dockerfile:1
FROM eclipse-temurin:17-jdk-jammy
ARG KAFKATORIO_VERSION
ARG APP_FILES="build/"
ENV SERVER_DATA_DIR="/app/data" \
KAFKA_STREAMS_STATE_DIR="/app/state/kafka" \
WEB_SERVER_PORT=80
EXPOSE $WEB_SERVER_PORT
COPY ${APP_FILES} /app/
ENTRYPOINT /app/bin/run