new docker file with nvm
This commit is contained in:
parent
4b5e003f33
commit
f684994868
@ -6,7 +6,6 @@ ENV NPROCS 1
|
||||
ENV JOBS 1
|
||||
ENV CXX g++-4.9
|
||||
ENV PGUSER postgres
|
||||
ENV NODEJS_VERSION --lts
|
||||
|
||||
# Add external repos
|
||||
RUN set -ex \
|
||||
@ -87,8 +86,8 @@ RUN set -ex \
|
||||
WORKDIR /srv
|
||||
EXPOSE 5858
|
||||
|
||||
CMD /etc/init.d/postgresql start \
|
||||
&& nvm install $NODEJS_VERSION \
|
||||
&& nvm alias default $NODEJS_VERSION \
|
||||
&& nvm use default
|
||||
COPY ./scripts/init.sh /tmp/init.sh
|
||||
RUN chmod 777 /tmp/init.sh
|
||||
|
||||
CMD /tmp/init.sh
|
||||
|
Loading…
Reference in New Issue
Block a user