Skip to content

Commit 7f25011

Browse files
committed
Upgrade to PHP 8.0.15
1 parent 57cd6bc commit 7f25011

File tree

2 files changed

+3
-48
lines changed

2 files changed

+3
-48
lines changed

Dockerfile

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
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
54
ARG WORKDIR=/srv/app
6-
ARG USER=root
7-
ARG UID=1000
85
ARG TZ=UTC
96

10-
ENV ENVIROMENT=${ENVIROMENT}
117
ENV WORKDIR=${WORKDIR}
12-
ENV USER=${USER}
13-
ENV UID=${UID}
148
ENV TZ=${TZ}
159

1610
# Setup Timezone
@@ -26,26 +20,9 @@ RUN docker-php-ext-install pdo_pgsql exif pcntl bcmath gd
2620
RUN 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
3624
COPY --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
5027
WORKDIR ${WORKDIR}
5128

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Optimised 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
1918
WORKDIR=/srv/app
20-
USER=root
2119
TZ=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

4422
https://github.com/nicekiwi/docker-php

0 commit comments

Comments
 (0)