Comments (4)
This docker image is using the latest stable Alpine Linux version (3.12) which uses php7.3. You must wait until the next Alpine Linux versión 3.13. For testing purposes you can use my own fork of this repo using that uses unstable Alpine Linux version (edge) but never use it on a production environment.
To run the edge version with php7.4: docker run -p 8080:8080 erseco/alpine-php7-webserver:edge
from docker-php-nginx.
Hi @StephanKrauss,
Yes what @erseco is saying is correct, this image is depending on what Alpine Linux is offering in it's repositories which is currently PHP7.3.
PHP7.4 is in the upcoming release, but it can take some time before it's released as stable.
In the meantime you can use the image @erseco is mentioning or have a look at the official PHP image, that one also has an Alpine Linux build: https://hub.docker.com/_/php
from docker-php-nginx.
I've been messing around with this for more time than I'd like to admit, as I wanted 7.4 support, but didn't want to handle an additional web-server configuration and such and other images had their issues that I didn't want to dig too much into.
Until Alpine and this image is updated, one can do a very hacky "upgrade" of PHP to 7.4 by adding the following to their Dockerfile
:
FROM trafex/alpine-nginx-php7 AS app
USER root
# Until the base image upgrades to PHP7.4/alpine 3.13
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk update && apk del php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl \
php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session \
php7-mbstring php7-gd
RUN apk --no-cache add php7 php7-fpm php7-opcache php7-mysqli php7-json php7-openssl php7-curl \
php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype php7-session \
php7-mbstring php7-gd
### END PHP7.4 hacks
This would add the edge
repositories and reinstall the PHP7 packages defined by the image, so they get upgraded to their latest versions in edge
.
It's not a very flexible approach, but I tested out with apk upgrade php7*
, and while it did upgrade the packages properly, it broke networking pretty badly. Most external hosts stopped resolving in the container (only several "cached" hosts were resolving properly).
from docker-php-nginx.
I'm happy to report that Alpine Linux 3.13 is out and this image now has PHP7.4!
https://github.com/TrafeX/docker-php-nginx/releases/tag/1.10.0
from docker-php-nginx.
Related Issues (20)
- Where is the tokenizer.so?? HOT 1
- Tag by php version HOT 1
- Add composer by default HOT 1
- [Question] Turn off "nobody" user HOT 10
- Weird Issue with Volumes. HOT 4
- Unable to set custom DNS HOT 2
- Add php_ldap HOT 1
- supervisorctl not working HOT 2
- Optimize PHP-FPM with JIT HOT 3
- Clean up nginx config HOT 2
- vscode-server` HOT 4
- docker-php-nginx with PHP 8.3? HOT 1
- Newrelic APM support HOT 4
- application/javascript mime type is missing in gzip_types HOT 1
- image Performing a pressure test using Apache Benchmark (ab).
- installing php extensions HOT 1
- Weird PSR-7 request target for current nginx default.conf with path info HOT 1
- Version mismatch (latest !=3.5.0 HOT 3
- I cannot run commands like "composer install" when using Windows WSL
- where are php_errors written? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-php-nginx.