File tree Expand file tree Collapse file tree 2 files changed +3
-48
lines changed
Expand file tree Collapse file tree 2 files changed +3
-48
lines changed Original file line number Diff line number Diff line change 1- FROM php:8.0.9-fpm- alpine3.14
1+ FROM php:8.0.15- alpine3.15
22
33# Setup ARG defaults
4- ARG ENVIROMENT=production
54ARG WORKDIR=/srv/app
6- ARG USER=root
7- ARG UID=1000
85ARG TZ=UTC
96
10- ENV ENVIROMENT=${ENVIROMENT}
117ENV WORKDIR=${WORKDIR}
12- ENV USER=${USER}
13- ENV UID=${UID}
148ENV TZ=${TZ}
159
1610# Setup Timezone
@@ -26,26 +20,9 @@ RUN docker-php-ext-install pdo_pgsql exif pcntl bcmath gd
2620RUN pecl install redis-5.3.2 \
2721 && docker-php-ext-enable redis
2822
29- # Install XDebug
30- RUN if [[ "${ENVIROMENT}" != "production" ]] ; then \
31- pecl install xdebug-3.0.2 \
32- && docker-php-ext-enable xdebug ; \
33- fi
34-
3523# Get latest Composer
3624COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
3725
38- # Set default php.ini
39- RUN mv "${PHP_INI_DIR}/php.ini-${ENVIROMENT}" "${PHP_INI_DIR}/php.ini"
40-
41- # Setup uID for user
42- RUN if [[ "${ENVIROMENT}" != "production" ] && [ "${USER}" != "root" ]] ; then \
43- usermod -u ${UID} ${USER} ; \
44- fi
45-
46- # Setup User
47- USER ${USER}
48-
4926# Set Working Dir
5027WORKDIR ${WORKDIR}
5128
Original file line number Diff line number Diff line change 44
55Optimised for Laravel 8.
66
7- - Alpine 3.14
8- - PHP 8.0.9
7+ - Alpine 3.15
8+ - PHP 8.0.15
99- Composer 2
1010- XDebug 3
1111
@@ -15,30 +15,8 @@ Supports Redis and PostgreSQL.
1515
1616```
1717# Defaults
18- ENVIRONMENT=production
1918WORKDIR=/srv/app
20- USER=root
2119TZ=UTC
22-
23- # Set if ENVIROMENT != production && USER != root
24- UID=1000
25- ```
26-
27- ` ENVIRONMENT ` defines weather ` development ` or ` production ` php.ini template is used.
28-
29- ## XDebug
30-
31- XDebug is only installed when build with ` ENVIROMENT="development" ` and is disabled by default.
32-
33- Enable with:
34-
35- ```
36- # php.ini
37-
38- [xdebug]
39- xdebug.mode=debug
40- xdebug.client_host=host.docker.internal
41- xdebug.client_port="9003"
4220```
4321
4422https://github.com/nicekiwi/docker-php
You can’t perform that action at this time.
0 commit comments