-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
15 changed files
with
2,329 additions
and
967 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 |
---|---|---|
|
@@ -8,3 +8,4 @@ vendor | |
|
||
# project | ||
.env | ||
.devops/data |
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,23 +1,25 @@ | ||
FROM php:8.1-cli | ||
FROM php:8.3-fpm | ||
|
||
RUN apt-get update && apt-get install -y curl git zip | ||
WORKDIR /api | ||
|
||
RUN apt-get update && apt-get install -y curl bash git zip | ||
RUN apt-get update && apt-get install -y libbrotli-dev ${PHPIZE_DEPS} | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
RUN pecl install swoole && docker-php-ext-enable swoole | ||
RUN pecl install redis swoole && docker-php-ext-enable redis swoole | ||
RUN docker-php-ext-install pdo pdo_mysql | ||
|
||
RUN pecl install xdebug-3.1.6 && docker-php-ext-enable xdebug | ||
RUN pecl install xdebug-3.3.2 && docker-php-ext-enable xdebug | ||
ENV XDEBUG_CLIENT_HOST=host.docker.internal | ||
ENV XDEBUG_PORT=9001 | ||
ENV XDEBUG_IDE_KEY="FIDELIFY" | ||
ENV XDEBUG_START_WITH_REQUEST=yes | ||
ENV XDEBUG_START=yes | ||
RUN echo "xdebug.mode=debug,profile,coverage,develop" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.discover_client_host=0" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.client_host=${XDEBUG_CLIENT_HOST}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.idekey=${XDEBUG_IDE_KEY}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.client_port=${XDEBUG_PORT}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.start_with_request=${XDEBUG_START_WITH_REQUEST}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" | ||
&& echo "xdebug.discover_client_host=0" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.client_host=${XDEBUG_CLIENT_HOST}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.client_port=${XDEBUG_PORT}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" \ | ||
&& echo "xdebug.start_with_request=${XDEBUG_START}" >> "${PHP_INI_DIR}/conf.d/90-xdebug.ini" | ||
|
||
COPY . /api | ||
|
||
COPY . /usr/src/swoole-server | ||
WORKDIR /usr/src/swoole-server | ||
RUN composer install | ||
|
||
RUN cd /usr/src/swoole-server && composer install | ||
# ENTRYPOINT [ "sh", "-c", "php public/index.php" ] |
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
Oops, something went wrong.