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 \ libfreetype6-dev \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libpng-dev \ libpng-dev \
zlib1g-dev \
libzip-dev \ libzip-dev \
zip \ zip \
unzip \ unzip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \ && 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 contents into directory
COPY . /var/www/html COPY . /var/www/html

View File

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