diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-10-03 01:23:48 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-10-03 01:30:23 +0530 |
commit | 1b5fa4e89b6013584ef1f636c1ce5e14ec827836 (patch) | |
tree | 54a4f9b0899fb891ec32bb081415826c56318793 /Lab04/Dockerfile | |
parent | abcb2c27dedf8dff976d002a521c725746dace42 (diff) |
Lab04: HTML Form Validation- adding .env and README
Diffstat (limited to 'Lab04/Dockerfile')
-rw-r--r-- | Lab04/Dockerfile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lab04/Dockerfile b/Lab04/Dockerfile index 01effe1..f7c558c 100644 --- a/Lab04/Dockerfile +++ b/Lab04/Dockerfile @@ -1,7 +1,14 @@ FROM php:7.4-apache +RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/* + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +# Install the PHP extension required for dotenv RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli COPY . /var/www/html WORKDIR /var/www/html + +RUN composer require vlucas/phpdotenv |