Skip to content
Discussion options

You must be logged in to vote

Hello @mjeandon

Just to clarify - the Docker images I provide do not include any framework source code. They only serve as runtime environments for PHP code and necessary extensions to run the framework.

If you want to install packages using Composer, please make sure you've copied your project’s source code (including the composer.json file) into the web root directory inside the container before running composer install to proceed with the package installation.

For example:

FROM shinsenter/codeigniter4:latest

### Copy your project’s source code (E.g in ./src/) into the web root directory
COPY ./src/ $APP_PATH/

### Install Composer packages
RUN composer require mpdf/mpdf voku/simple_ht…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mjeandon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants