Files
coder-images/php/Dockerfile.php84
T

41 lines
1.1 KiB
Docker

FROM gitea.bobert.me/anthorob/coder-base:latest@sha256:706d6630162eab77c76dfd64b0385f8f5f659cce00b8042dfb665775af18f235
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