chore: added zip in dockerfile

This commit is contained in:
George Wainaina 2024-06-17 16:35:21 +03:00
parent 8646453a0a
commit 973c5e0b09
2 changed files with 9 additions and 5 deletions

View file

@ -6,12 +6,14 @@ RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
zlib1g-dev \
libzip-dev \
zip \
unzip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install pdo pdo_mysql
&& docker-php-ext-install pdo pdo_mysql \
&& docker-php-ext-install zip
# copy contents into directory
COPY . /var/www/html

View file

@ -21,8 +21,10 @@ services:
MYSQL_PASSWORD: "12345678"
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data:
# skip data persistance (if dev testing)
# volumes:
# - mysql_data:/var/lib/mysql
# volumes:
# mysql_data: