Skip to content

Commit 1264cec

Browse files
committed
Add NVM to the image
1 parent da6488e commit 1264cec

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Dockerfile

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
FROM php:7.1-apache-stretch
22

3+
ENV LD_LIBRARY_PATH /usr/local/instantclient
4+
5+
# Setup the required extensions.
6+
ARG DEBIAN_FRONTEND=noninteractive
7+
8+
# Install NVM and the current (as of 26/02/2019) LTS version of Node.
9+
ENV NVM_DIR /usr/local/nvm
10+
ENV NODE_VERSION lts/carbon
11+
RUN mkdir -p $NVM_DIR && \
12+
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash && \
13+
. $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION
14+
315
ADD root/ /
416
# Fix the original permissions of /tmp, the PHP default upload tmp dir.
517
RUN chmod 777 /tmp && chmod +t /tmp
618

719
# Setup the required extensions.
8-
ARG DEBIAN_FRONTEND=noninteractive
920
RUN /tmp/setup/php-extensions.sh
1021
RUN /tmp/setup/oci8-extension.sh
1122
ENV LD_LIBRARY_PATH /usr/local/instantclient

0 commit comments

Comments
 (0)