diff --git a/.docker/Dockerfile b/.docker/Dockerfile
index 0f1a1203e974dc33935b99548ef17a54ddf059ef..8aadd285bebdf940cfb915f6377551a1749ba3f0 100644
--- a/.docker/Dockerfile
+++ b/.docker/Dockerfile
@@ -10,7 +10,7 @@ RUN apt-get install -y python3-pip
 RUN apt-get install -y git
 RUN apt-get install -y curl
 
-RUN apt-get install -y build-essential autoconf libtool pkg-config
+RUN apt-get install -y openjdk-11-jdk-headless
 
 
 WORKDIR /
@@ -21,4 +21,5 @@ RUN pip3 install -r build-requirements.txt
 
 COPY . /libcaosdb/
 WORKDIR /libcaosdb
+RUN rm git rev-parse HEAD > libcaosdb_commit
 RUN rm -rf .git