Update Dolibarr Docker image to version 22.0.4 #9

Merged
glenux merged 3 commits from develop into master 2026-01-13 20:43:16 +00:00
Owner

Key improvements:

  • Upgraded base image to PHP 8.1 (from 7.4)
  • Updated Dolibarr to latest stable version (22.0.4)
  • Improved Dockerfile best practices:
    • Added SHELL directive for better error handling
    • Used LABEL instead of MAINTAINER
    • Added --no-install-recommends to reduce image size
    • Cleaned up apt cache
    • Improved formatting and consistency
  • Switched to GitHub source for Dolibarr downloads
Key improvements: - Upgraded base image to PHP 8.1 (from 7.4) - Updated Dolibarr to latest stable version (22.0.4) - Improved Dockerfile best practices: - Added SHELL directive for better error handling - Used LABEL instead of MAINTAINER - Added --no-install-recommends to reduce image size - Cleaned up apt cache - Improved formatting and consistency - Switched to GitHub source for Dolibarr downloads
Update Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
4e8dd2526d
feat(docker): Refactor Dockerfile for improved build and maintainability
Some checks reported errors
continuous-integration/drone/push Build encountered an error
a32e446b87
This refactoring addresses several long-standing issues in the
Dockerfile, improving build reliability, reducing image size, and
enhancing maintainability. The previous Dockerfile was prone to caching
issues and unnecessary package installations, leading to larger images
and slower builds.

- Replaced MAINTAINER with LABEL for standard Docker metadata.
- Added SHELL directive to ensure consistent shell behavior and enable
  pipefail.
- Introduced --no-install-recommends to apt-get install to minimize
  installed packages and reduce image size.
- Added rm -rf /var/lib/apt/lists/\* after apt-get operations to clear
  package cache and further reduce image size.
- Enclosed docker-php-ext-install -j$(nproc) arguments in quotes to
  prevent shell expansion issues.
- Switched Dolibarr download source from SourceForge to GitHub tags for
  more reliable and consistent downloads.
- Added -sSL to curl commands for silent, secure, and follow-redirect
  behavior.
- Removed trailing newline at the end of the file for consistency.

Signed-off-by: Glenn <glenux@glenux.net>
fix(docker): Suppress verbose output during Dolibarr extraction
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
e45c8487f7
This change prevents unnecessary noise in the build logs, which can be
particularly distracting in automated CI/CD pipelines or when debugging
other build-related issues. The previous verbose output from unzip was
largely informational and not critical for successful image creation.

- Added the -q (quiet) flag to the unzip command when extracting the
  Dolibarr archive, silencing its output.

Signed-off-by: Glenn <glenux@glenux.net>
glenux merged commit cc00200df0 into master 2026-01-13 20:43:16 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
glenux-opencontainers/service-dolibarr!9
No description provided.