Skip to content

fix: make npm available in php runtime and align entrypoint shell#17

Merged
vitormattos merged 1 commit intomainfrom
fix/issue-8-npm-runtime
Apr 18, 2026
Merged

fix: make npm available in php runtime and align entrypoint shell#17
vitormattos merged 1 commit intomainfrom
fix/issue-8-npm-runtime

Conversation

@vitormattos
Copy link
Copy Markdown
Member

@vitormattos vitormattos commented Apr 18, 2026

Summary

This PR fixes the issue where npm was not available during container bootstrap in the PHP service.

Changes

  • Replace NVM-based Node setup in PHP image with Node/NPM from official node:20-bookworm-slim image
  • Create explicit symlinks for npm and npx
  • Run entrypoint with bash instead of sh
  • Make environment checks in entrypoint shell-safe and use exec php-fpm

Validation

  • docker compose build akaunting.php
  • docker compose exec -u www-data akaunting.php node --version

Closes #8

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos merged commit c694236 into main Apr 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing npm in php

1 participant