mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
25 lines
907 B
Docker
25 lines
907 B
Docker
|
# storm1er/electron-builder-wine-dubnium:1.0.2
|
||
|
|
||
|
FROM electronuserland/builder:wine
|
||
|
|
||
|
RUN rm `which node`
|
||
|
RUN rm `which npm`
|
||
|
|
||
|
ENV NODE_VERSION=10.18.0
|
||
|
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
|
||
|
|
||
|
RUN echo 'export NVM_DIR="$HOME/.nvm"' >> "$HOME/.bashrc"
|
||
|
RUN echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> "$HOME/.bashrc"
|
||
|
RUN echo '[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion' >> "$HOME/.bashrc"
|
||
|
|
||
|
RUN bash -c 'source $HOME/.nvm/nvm.sh && \
|
||
|
nvm install $NODE_VERSION && \
|
||
|
nvm use $NODE_VERSION && \
|
||
|
nvm alias default $NODE_VERSION'
|
||
|
|
||
|
ENV NVM_DIR /root/.nvm
|
||
|
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
|
||
|
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||
|
|
||
|
RUN curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
|