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