-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- changed to use contents of working directory - add ENTRYPOINT - cleanup /var/lib/apt/lists - changed to use published image on README.md
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.idea | ||
.git | ||
.gitignore | ||
.github | ||
.couscous | ||
couscous.yml | ||
.dockerignore | ||
Dockerfile | ||
.phpunit.result.cache | ||
php-profiler.log | ||
vendor | ||
lsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
FROM php:8.0-cli | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libffi-dev \ | ||
libzip-dev \ | ||
&& docker-php-ext-install ffi \ | ||
&& docker-php-ext-install pcntl \ | ||
&& docker-php-ext-install zip | ||
&& docker-php-ext-install zip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
RUN composer require sj-i/php-profiler | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN composer install --no-dev | ||
|
||
ENTRYPOINT ["php", "php-profiler"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters