diff --git a/8.3-node-20/Dockerfile b/8.3-node-20/Dockerfile new file mode 100644 index 0000000..f6cc55c --- /dev/null +++ b/8.3-node-20/Dockerfile @@ -0,0 +1,36 @@ +FROM php:8.3 + +MAINTAINER Martin Kluska + +ENV NVM_DIR /root/.nvm +ENV NODE_VERSION 18.15.0 +ENV COMPOSER_VERSION 2.7.1 + +# Install Node.js +RUN mkdir $NVM_DIR \ + && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \ + && chmod +x $NVM_DIR/nvm.sh \ + && $NVM_DIR/nvm.sh \ + && ln -sf /root/.nvm/versions/node/v$NODE_VERSION/bin/node /usr/bin/nodejs \ + && ln -sf /root/.nvm/versions/node/v$NODE_VERSION/bin/node /usr/bin/node \ + && ln -sf /root/.nvm/versions/node/v$NODE_VERSION/bin/npm /usr/bin/npm \ + && npm install -g npm@10.2 -f + + +# Install shared php setup +COPY /php-shared-tools /tmp/php-shared-tools + +RUN chmod uga+x /tmp/php-shared-tools/install.sh +RUN /tmp/php-shared-tools/install.sh + +# Install composer +RUN curl -sS https://getcomposer.org/installer | \ + php -- --install-dir=/usr/local/bin/ --filename=composer --version=$COMPOSER_VERSION + + +# Install rsync and other tools +RUN apt-get update && apt-get install -y rsync gdb && rm -r /var/lib/apt/lists/* + +COPY entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] +CMD ["php", "-a"] diff --git a/package.json b/package.json index 2f413c8..186dd72 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,15 @@ "wf-docker": { "image": "pionl/docker-php-laravel-ci", "tags": [ + { + "tag": "8.3-node-20", + "docker": { + "php": "8.3", + "node": "18.15.0", + "npm": "10.2", + "composer": "2.7.1" + } + }, { "tag": "8.2-node-20", "docker": {