File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11FROM php:8.3-fpm
22
3- ARG NODE_MAJOR=20
4-
53RUN apt-get update \
64 && apt-get install -y \
75 git \
@@ -28,11 +26,15 @@ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | ba
2826 && nvm install 20 \
2927 && nvm alias default 20
3028
29+ ENV NVM_DIR /root/.nvm
30+ ENV NODE_PATH $NVM_DIR/v20/lib/node_modules
31+ ENV PATH $NVM_DIR/v20/bin:$PATH
32+
3133RUN echo "alias jigsaw=./vendor/bin/jigsaw" >> /etc/bash.bashrc && \
3234 echo "alias compile='./vendor/bin/jigsaw build'" >> /etc/bash.bashrc && \
3335 /bin/bash -c "source /etc/bash.bashrc"
3436
3537WORKDIR /var/www/html
3638
3739COPY entrypoint.sh /var/www/scripts/
38- ENTRYPOINT [ "bash" , "/var/www/scripts/entrypoint.sh" ]
40+ ENTRYPOINT [ "bash" , "/var/www/scripts/entrypoint.sh" ]
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ . " $NVM_DIR /nvm.sh"
4+
35# Set uid of host machine
46usermod --non-unique --uid " ${HOST_UID} " www-data
57groupmod --non-unique --gid " ${HOST_GID} " www-data
Original file line number Diff line number Diff line change @@ -5,14 +5,12 @@ services:
55 ports :
66 - 127.0.0.1:${HTTP_PORT:-80}:80
77 volumes :
8- - .docker/nginx/:/etc/nginx/conf.d/
8+ - .docker/nginx/:/etc/nginx/conf.d/
99 - ./build_local:/var/www/html
1010
1111 php :
1212 build :
1313 context : .docker/php
14- args :
15- - NODE_MAJOR=${NODE_MAJOR:-20}
1614 ports :
1715 - " 127.0.0.1:${HTTP_PORT:-3000}:3000"
1816 - " 127.0.0.1:${HTTP_PORT_BROWSERSYNC:-3001}:3001"
@@ -25,4 +23,4 @@ services:
2523 - TZ=${TZ:-America/Sao_Paulo}
2624 - XDEBUG_CONFIG=${XDEBUG_CONFIG:-client_host=172.17.0.1 start_with_request=yes}
2725 - XDEBUG_MODE=${XDEBUG_MODE:-debug}
28- - APP_ENV=${APP_ENV:-develop}
26+ - APP_ENV=${APP_ENV:-develop}
You can’t perform that action at this time.
0 commit comments