You've already forked docker-ph-cli
Initial commit
This commit is contained in:
9
php/.bashrc
Normal file
9
php/.bashrc
Normal file
@@ -0,0 +1,9 @@
|
||||
export PS1='$(whoami):$(pwd)# '
|
||||
alias ll='ls -l'
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
# see https://stackoverflow.com/questions/4188324/bash-completion-of-makefile-target
|
||||
# -h to grep to hide filenames
|
||||
# -s to grep to hide error messages
|
||||
# include Makefile and .make directory
|
||||
complete -W "\`grep -shoE '^[a-zA-Z0-9_.-]+:([^=]|$)' ?akefile .make/*.mk | sed 's/[^a-zA-Z0-9_.-]*$//' | grep -v PHONY\`" make
|
33
php/Dockerfile
Normal file
33
php/Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM composer AS composer
|
||||
FROM php:8.2-cli-alpine
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
RUN apk add --no-cache bash nodejs npm bash
|
||||
RUN apk --no-cache add pcre-dev ${PHPIZE_DEPS} \
|
||||
&& pecl install redis && docker-php-ext-enable redis \
|
||||
&& docker-php-ext-install mysqli pdo pdo_mysql \
|
||||
&& apk del pcre-dev ${PHPIZE_DEPS}
|
||||
|
||||
RUN apk add --update --no-cache \
|
||||
strace git make vim curl wget
|
||||
|
||||
RUN sed -e 's;/bin/ash$;/bin/bash;g' -i /etc/passwd
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
|
||||
&& apk add --no-cache --update linux-headers \
|
||||
&& pecl install xdebug \
|
||||
&& docker-php-ext-enable xdebug \
|
||||
&& apk del -f .build-deps
|
||||
|
||||
RUN echo "xdebug.start_with_request=yes" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
|
||||
&& echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
|
||||
&& echo "xdebug.log=/var/www/html/xdebug/xdebug.log" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
|
||||
&& echo "xdebug.discover_client_host=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
|
||||
&& echo "xdebug.client_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
|
||||
&& echo "xdebug.client_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
||||
|
||||
COPY ./custom.ini /usr/local/etc/php/conf.d/custom.ini
|
||||
COPY ./.bashrc /root/.bashrc
|
||||
|
||||
WORKDIR "/var/www"
|
||||
CMD ["php"]
|
||||
|
7
php/custom.ini
Normal file
7
php/custom.ini
Normal file
@@ -0,0 +1,7 @@
|
||||
memory_limit = -1
|
||||
max_execution_time = 600
|
||||
upload_max_filesize = 2G
|
||||
post_max_size = 2G
|
||||
error_log = /var/log/php_error.log
|
||||
log_errors = On
|
||||
disable_functions =
|
Reference in New Issue
Block a user