Need a docker script made

Job ID: 32534703

Budget: $10 – $30 CAD

I need a docker script made for a project I am working on.

The script will setup a lamp environment with the following:
- Ubuntu 20.04
- Apache2 version 2.4.52 (or newer)
- MariaDb version 10.6.5 (or newer)
- PHP 8.1 (latest patch)

The required ubuntu packages are: sudo apt install -y php8.1 php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-cli php8.1-mbstring php8.1-bcmath unzip php8.1-zip mariadb-server mariadb-client apache2

The project folder should be as follows:
/project/
/project/src/public/index.php (hello world)
/project/docker/docker_script

- Apache needs to be configured to mount a share located on the same drive as the docker script itself, path will be: "../src/public" it should mount to /var/www/src/public/

Upon bringing the docker script up it should:
apt update && apt upgrade

When bringing up the docker image for the first time, it should also run a script in the src directory called "/src/db-update.php". For now, you can just have it echo to the console from the script stating that it has run.
Related categories: PHP Linux Apache MySQL Docker