Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.3 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions 8.3-node-20/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM php:8.3

MAINTAINER Martin Kluska <[email protected]>

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 [email protected] -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"]
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down