From 3ef60b7cf7dc92c5d5ae9b055b857991c7b66d2f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 15 Nov 2020 20:53:01 -0800 Subject: [PATCH] Fix Dockerfile When not using the noninteractive front-end the installation blocks to ask which timezone to use. --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6b17df3..da5401b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM ubuntu:latest -RUN apt-get update \ - && apt-get upgrade -y \ - && apt-get install -y build-essential cmake default-jdk-headless +RUN export DEBIAN_FRONTEND=noninteractive \ + && ln -fs /usr/share/zoneinfo/America/Vancouver /etc/localtime \ + && apt-get update \ + && apt-get upgrade -y \ + && apt-get install -y build-essential cmake default-jdk-headless