Files
coder-images/php/Dockerfile.php84
T
anthorob 95e630e0cf
Build PHP Images / build (84) (push) Successful in 1m19s
Build PHP Images / build (82) (push) Successful in 1m23s
Build Java Images / build (21) (push) Successful in 1m33s
Build Python Images / build (push) Successful in 28s
fix
2026-03-18 09:04:32 -04:00

41 lines
1.0 KiB
Docker

FROM gitea.bobert.me/anthorob/coder-base:latest
USER root
RUN apt-get update && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get install -y --no-install-recommends \
php8.4 \
php8.4-cli \
php8.4-common \
php8.4-curl \
php8.4-mbstring \
php8.4-mysql \
php8.4-xml \
php8.4-zip \
php8.4-bcmath \
php8.4-soap \
php8.4-readline \
php8.4-intl \
php8.4-opcache \
php8.4-gd \
php8.4-pgsql \
php8.4-sqlite3 \
php8.4-tokenizer \
php8.4-fileinfo && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/php php /usr/bin/php8.4 84 && \
update-alternatives --set php /usr/bin/php8.4
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
USER coder
ENV NVM_DIR=/home/coder/.nvm
RUN mkdir -p $NVM_DIR && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
WORKDIR /home/coder