|
@ -50,3 +50,20 @@ RUN apt update && \ |
|
|
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
sed -i 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
sed -i 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \ |
|
|
locale-gen |
|
|
locale-gen |
|
|
|
|
|
|
|
|
|
|
|
########################################################################### |
|
|
|
|
|
# Install custom node version |
|
|
|
|
|
########################################################################### |
|
|
|
|
|
|
|
|
|
|
|
USER root |
|
|
|
|
|
|
|
|
|
|
|
ARG CUSTOM_NODE_VERSION |
|
|
|
|
|
ENV CUSTOM_NODE_VERSION ${CUSTOM_NODE_VERSION} |
|
|
|
|
|
|
|
|
|
|
|
RUN if [ ${CUSTOM_NODE_VERSION} = true ]; then \ |
|
|
|
|
|
. ~/.bashrc && nvm install lts/erbium \ |
|
|
|
|
|
&& . ~/.bashrc && nvm alias default lts/erbium \ |
|
|
|
|
|
&& cp -R ~/.nvm/alias /home/laradock/.nvm \ |
|
|
|
|
|
&& cp -R ~/.nvm/versions /home/laradock/.nvm \ |
|
|
|
|
|
&& chown -R ${CUSTOM_PUID}:${CUSTOM_PGID} /home/laradock/.nvm \ |
|
|
|
|
|
;fi |