From 1b5fa4e89b6013584ef1f636c1ce5e14ec827836 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Tue, 3 Oct 2023 01:23:48 +0530 Subject: Lab04: HTML Form Validation- adding .env and README --- Lab04/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Lab04/Dockerfile') 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 -- cgit v1.2.3