# sudo -E is required to preserve the environment
# If you remove that line, it will most like freeze at this step
-RUN sudo -E add-apt-repository ppa:openjdk-r/ppa && \
+RUN apt-get install --reinstall ca-certificates && sudo -E add-apt-repository ppa:openjdk-r/ppa && \
apt-get update && \
apt-get -qq install -y openjdk-8-jre-headless git curl ksh