new docker file with nvm

This commit is contained in:
Simon Martín 2019-02-12 16:54:50 +01:00
parent 4b5e003f33
commit f684994868

View File

@ -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