The container can be found at: https://hub.docker.com/r/sebivenlo/prj1-web
This docker container is based on the official php-apache container.
The base container is extended with a couple of extensions that might be needed during the project.
Two image variants are published from this repo. Both share the same PHP version, extensions, and upload_max_filesize / post_max_size so application code behaves identically in both.
| Tag | Target | Use case |
|---|---|---|
sebivenlo/prj1-web:<version> |
dev |
Devcontainer / local development. Ships git, gnupg, zip CLI, a non-root devuser for UID/GID remapping, and php.ini-development (errors visible inline). |
sebivenlo/prj1-web:<version>-prod |
prod |
Deployments (e.g. the FontysVenlo developer platform). No dev tooling, no devuser, and php.ini-production (stack traces not shown in HTTP responses). |
Build a specific target locally:
docker build --target prod -t prj1-web:prod .
docker build --target dev -t prj1-web:dev .docker build . (no --target) builds dev, matching the previous single-stage behaviour.
- GD
- EXIF
- PDO
- PDO PostgreSQL
- ZIP
There are two ways to release a new version to Docker Hub.
- Using git tags:
- Select the correct next version
- Create a git tag:
git tag -a v<version> -m "message" - Push the tag to GitHub:
git push origin <tag>
- Create a release using the GitHub ui:
- Select the correct next version
- Click on
Releaseson the right - Click
Create new release