0

I am trying to create a Dockerfile to install PHP 7 on Ubuntu 16.04. This is supposed to fully automate the whole installation process. However, during the installation, it prompts me to select a Geographic area, which completely defeats the purpose.

The directive I am using is:

RUN apt-get update && apt-get install -y php

And here is the prompt:

enter image description here

How can I automate this? Maybe prepare some predefined values for the prompts in some manner?

Note: I am aware of this image link: https://hub.docker.com/_/php/. Unfortunately, the scripts there are overly complicated for me. I just need something nice and simple.

Thanks!

1 Answers1

1

It turns out tzdata is it. The solution in this link works for me: https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive.