File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22.git /
33.github /
44.env *
5+ vendor /
56Dockerfile *
67info.php
7- compose *
8+ compose. *
89README.md
910.dockerignore
1011.gitattributes
1112.gitignore
13+ debug.sh
Original file line number Diff line number Diff line change 11FROM php:8-apache
22
3+ # Install system dependencies
34RUN apt-get update && \
45 apt-get install -y \
5- zlib1g-dev
6-
7- RUN apt-get install -y \
8- libxml2-dev
9-
6+ zlib1g-dev \
7+ libxml2-dev \
8+ libssl-dev \
9+ libfreetype-dev \
10+ libjpeg62-turbo-dev \
11+ libpng-dev \
12+ unzip \
13+ git
14+
15+ # Install PHP extensions
1016RUN /usr/local/bin/docker-php-ext-install mysqli pdo pdo_mysql
11- RUN apt-get install libssl-dev -y
12-
13- ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0"
1417
1518ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
16-
1719RUN chmod +x /usr/local/bin/install-php-extensions && \
1820 install-php-extensions gd
1921
20- RUN apt-get update && apt-get install -y \
21- libfreetype-dev \
22- libjpeg62-turbo-dev \
23- libpng-dev \
24- && docker-php-ext-configure gd --with-freetype --with-jpeg \
25- && docker-php-ext-install -j$(nproc) gd
22+ # Install Composer
23+ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
2624
25+ # Apache configuration
2726COPY docker/000-default.conf /etc/apache2/sites-available/000-default.conf
2827RUN a2enmod rewrite
2928
29+ # Application setup
3030COPY . /var/www/
31+ WORKDIR /var/www
32+
33+ # Install dependencies, then delete Composer files
34+ RUN composer install --no-interaction --no-dev --optimize-autoloader
35+ RUN rm composer.*
36+
3137RUN chown -R www-data:www-data /var/www
3238
3339COPY docker/start-apache /usr/local/bin
3440
3541ENV APP_PATH=/var/www
3642
37- CMD ["start-apache" ]
43+ CMD ["start-apache" ]
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ services:
1010 container_name : bivieh_devmarkt_dev
1111 build :
1212 context : .
13- dockerfile : Dockerfile. debug
13+ dockerfile : debug.Dockerfile
1414 ports :
1515 - " 8080:80"
1616 volumes :
Original file line number Diff line number Diff line change 1+ FROM php:8-apache
2+
3+ # Install system dependencies
4+ RUN apt-get update && \
5+ apt-get install -y \
6+ zlib1g-dev \
7+ libxml2-dev \
8+ libssl-dev \
9+ libfreetype-dev \
10+ libjpeg62-turbo-dev \
11+ libpng-dev \
12+ unzip \
13+ git
14+
15+ # Install PHP extensions
16+ RUN /usr/local/bin/docker-php-ext-install mysqli pdo pdo_mysql
17+
18+ ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
19+ RUN chmod +x /usr/local/bin/install-php-extensions && \
20+ install-php-extensions gd
21+
22+ # Install Composer
23+ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
24+
25+ # Apache configuration
26+ COPY docker/000-default.conf /etc/apache2/sites-available/000-default.conf
27+ RUN a2enmod rewrite
28+
29+ # Application setup
30+ COPY . /var/www/
31+ WORKDIR /var/www
32+
33+ # Install dependencies (including dev for debug mode), then delete Composer files
34+ RUN composer install --no-interaction
35+ RUN rm composer.*
36+
37+ RUN chown -R www-data:www-data /var/www
38+
39+ COPY docker/start-apache /usr/local/bin
40+
41+ ENV APP_PATH=/var/www
42+
43+ CMD ["start-apache" ]
Original file line number Diff line number Diff line change 1- docker-compose -f compose.debug.yaml up
1+ docker-compose -f compose.debug.yaml up --build
You can’t perform that action at this time.
0 commit comments