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.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