forked from xtrime-ru/TelegramApiServer
-
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.
Upstream docker image (xtrime-ru#161)
Switch to upstream MadelineProto image
- Loading branch information
Showing
37 changed files
with
2,792 additions
and
460 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 |
---|---|---|
@@ -1,31 +1,13 @@ | ||
FROM php:8.3-cli | ||
FROM danog/madelineproto:latest | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN true \ | ||
# Install main extension | ||
&& apt-get install procps git zip vim libzip-dev libgmp-dev libuv1-dev libssl-dev libnghttp2-dev libffi-dev libicu-dev libonig-dev libxml2-dev libpng-dev -y \ | ||
&& docker-php-ext-install -j$(nproc) sockets bcmath mysqli pdo_mysql pcntl ffi intl gmp zip gd \ | ||
# Install additional extension | ||
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \ | ||
&& pecl bundle uv && pecl bundle igbinary \ | ||
&& docker-php-ext-install -j$(nproc) uv igbinary \ | ||
# Install PrimeModule for AuthKey generation speedup | ||
&& git clone https://github.com/danog/PrimeModule-ext \ | ||
&& cd PrimeModule-ext && make -j$(nproc) \ | ||
&& make install \ | ||
&& cd ../ \ | ||
&& rm -rf PrimeModule-ext/ \ | ||
# Install composer | ||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ | ||
# Cleanup | ||
&& docker-php-source delete \ | ||
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \ | ||
&& rm -rf /usr/src | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait /usr/local/bin/docker-compose-wait | ||
|
||
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" | ||
RUN echo 1.0.0 > /tas_version | ||
|
||
EXPOSE 9503 | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] | ||
ENV UV_USE_IO_URING=0 | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
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,12 +1,16 @@ | ||
FROM xtrime/telegram-api-server:latest | ||
|
||
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" | ||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
|
||
RUN pecl install xdebug \ | ||
&& echo "" >> "$PHP_INI_DIR/conf.d/xdebug.ini" \ | ||
&& echo "zend_extension=xdebug.so" >> "$PHP_INI_DIR/conf.d/xdebug.ini" | ||
RUN echo "opcache.jit=disable" >> "$PHP_INI_DIR/conf.d/xdebug.ini" | ||
|
||
RUN chmod +x /usr/local/bin/install-php-extensions && \ | ||
install-php-extensions xdebug && \ | ||
rm /usr/local/bin/install-php-extensions | ||
|
||
ADD dev/. "$PHP_INI_DIR/conf.d/" | ||
|
||
EXPOSE 9503 | ||
EXPOSE 9003 | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] | ||
ENTRYPOINT ["./entrypoint.sh"] |
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.