Files
coder-images/php/Dockerfile.php82
T

41 lines
1.1 KiB
Docker

FROM gitea.bobert.me/anthorob/coder-base:latest@sha256:6e875b1c9cff2a04ed1bdfc3e95c3232a8b5f7d0baf272edc41c566477edac01
USER root
RUN apt-get update && \
add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get install -y --no-install-recommends \
php8.2 \
php8.2-cli \
php8.2-common \
php8.2-curl \
php8.2-mbstring \
php8.2-mysql \
php8.2-xml \
php8.2-zip \
php8.2-bcmath \
php8.2-soap \
php8.2-readline \
php8.2-intl \
php8.2-opcache \
php8.2-gd \
php8.2-pgsql \
php8.2-sqlite3 \
php8.2-tokenizer \
php8.2-fileinfo && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/php php /usr/bin/php8.2 82 && \
update-alternatives --set php /usr/bin/php8.2
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