Skip to content

Commit

Permalink
Merge pull request #1 from LyseonTech/node
Browse files Browse the repository at this point in the history
Add node
  • Loading branch information
vinicios-gomes committed Jan 8, 2021
2 parents 11aa755 + 73bb4e4 commit b27e177
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN apt-get install -y \
&& docker-php-ext-install pdo pdo_pgsql pgsql

# Install xdebug
RUN pecl install xdebug-2.9.4 \
RUN pecl install xdebug-2.9.8 \
&& docker-php-ext-enable xdebug

# Install Redis
Expand Down Expand Up @@ -65,8 +65,19 @@ RUN docker-php-ext-install intl
# Install pcntl
RUN docker-php-ext-install pcntl

ENV NVM_DIR=/opt/nvm
RUN git clone https://github.com/nvm-sh/nvm.git $NVM_DIR
RUN cd $NVM_DIR && \
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)` && \
. $NVM_DIR/nvm.sh && \
nvm install 13 && \
nvm use node
RUN echo "source ${NVM_DIR}/nvm.sh" > $HOME/.bashrc

COPY --from=composer /usr/bin/composer /usr/bin/composer

COPY config/php.ini /usr/local/etc/php/conf.d/

WORKDIR /var/www/nextcloud
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "sh", "/usr/local/bin/entrypoint.sh" ]
ENTRYPOINT [ "sh", "/usr/local/bin/entrypoint.sh" ]
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
- db
volumes:
- ./:/var/www
- ~/.composer:/root/.composer/
- ~/.npm:/root/.npm/
restart: unless-stopped
ports:
- $HTTP_PORT:$HTTP_PORT
Expand Down

0 comments on commit b27e177

Please sign in to comment.