Next
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -31,24 +31,9 @@ ADD https://atom.io/download/deb /tmp/atom.deb
|
||||
RUN dpkg -i /tmp/atom.deb && rm /tmp/atom.deb
|
||||
|
||||
########################################################
|
||||
##### nvm
|
||||
##### nvm and node and yarn and js packages
|
||||
########################################################
|
||||
RUN git clone https://github.com/creationix/nvm.git /usr/local/nvm
|
||||
ADD ./nvmsetup.sh /etc/profile.d/nvmsetup.sh
|
||||
RUN bash -c 'source /etc/profile.d/nvmsetup.sh && \
|
||||
nvm install --lts && \
|
||||
nvm use default'
|
||||
|
||||
########################################################
|
||||
##### javascript, my favorite
|
||||
########################################################
|
||||
# yes i know yarn says not to install it this way
|
||||
RUN \
|
||||
source /etc/profile.d/nvmsetup.sh && \
|
||||
nvm use default && \
|
||||
npm install -g npm && \
|
||||
npm install -g yarn
|
||||
|
||||
RUN yarn global add prettier
|
||||
RUN yarn global add create-react-app
|
||||
RUN yarn global add jetpack
|
||||
ADD ./nvm-init.sh /tmp/nvm-init.sh
|
||||
RUN bash /tmp/nvm-init.sh && rm /tmp/nvm-init.sh
|
||||
|
||||
Reference in New Issue
Block a user