-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d7a7d6
commit 5601a07
Showing
3 changed files
with
35 additions
and
2 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,25 @@ | ||
#=======================# | ||
# composer já instalado # | ||
#=======================# | ||
FROM composer:latest AS composer | ||
|
||
FROM php:7.4-cli | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y \ | ||
git \ | ||
zip | ||
|
||
RUN yes | pecl install xdebug-3.1.5 \ | ||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \ | ||
&& echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini | ||
|
||
WORKDIR /var/www/html | ||
|
||
# instalar composer a partir do outro container | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
CMD ["sh", "-c", "tail -f /dev/null"] |
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
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