Last active
November 21, 2022 14:58
-
-
Save manuelep/4551836f72ca3df9526be3df4f982a1c to your computer and use it in GitHub Desktop.
php-image-test
This file contains hidden or 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
# docker-compose.yml | |
version: '3.3' | |
services: | |
php: | |
# image: php:7.4-apache | |
build: | |
context: . | |
dockerfile: php.Dockerfile | |
container_name: pcge | |
ports: | |
- 8088:80 | |
volumes: | |
- ./emergenze-pcge:/var/www/html/emergenze-pcge | |
# TODO |
This file contains hidden or 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
FROM php:7.4-apache | |
RUN apt-get update \ | |
&& apt-get install -y postgresql postgresql-contrib \ | |
&& apt-get install sudo \ | |
&& apt-get install -y libpq-dev \ | |
&& docker-php-ext-install pdo pdo_pgsql \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini | |
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini | |
RUN sed -i '934 s/^;//' /usr/local/etc/php/php.ini | |
# This Dockerfile doesn't need to have an entrypoint and a command | |
# as Bitbucket Pipelines will overwrite it with a bash script. | |
CMD ["apache2-foreground"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment