summaryrefslogtreecommitdiff
path: root/Lab04/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Lab04/Dockerfile')
-rw-r--r--Lab04/Dockerfile7
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