Skip to content

Commit

Permalink
testes com php7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianowead committed Jun 13, 2024
1 parent 0d7a7d6 commit 5601a07
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
25 changes: 25 additions & 0 deletions Dockerfile74
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"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Consulta online à diversos serviços gratuitos de CEP online.
[![Code Intelligence Status](https://scrutinizer-ci.com/g/adrianowead/cep-gratis/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)

## Necessário
[![Supported PHP version](https://img.shields.io/badge/PHP->%3D%205.6-blue.svg)]()
[![Supported PHP version](https://img.shields.io/badge/PHP-%5E7.2.25_%7C%7C_%5E8.0-blue.svg)]()


## Dependências
[![Requires Guzzle](https://img.shields.io/badge/Guzzle-~6.0-lightgrey.svg)]()
[![Requires Guzzle](https://img.shields.io/badge/Guzzle->=7.8-lightgrey.svg)]()


# Serviços suportados
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ services:
volumes:
- ./:/var/www/html

php74:
build:
context: .
dockerfile: Dockerfile74
container_name: php74
volumes:
- ./:/var/www/html

php80:
build:
context: .
Expand Down

0 comments on commit 5601a07

Please sign in to comment.