Skip to content

Commit 502e7d0

Browse files
author
js-jslog
committed
create initial Dockerfile - uses old version of nvm
1 parent bcbcf87 commit 502e7d0

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Dockerfile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM ubuntu:xenial
2+
3+
ENV TERM=xterm-256color
4+
5+
# Replace shell with bash so we can source files
6+
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
7+
8+
# Set debconf to run non-interactively
9+
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
10+
11+
# Install base dependencies
12+
RUN apt-get update && apt-get install -y -q --no-install-recommends \
13+
apt-transport-https \
14+
build-essential \
15+
ca-certificates \
16+
curl \
17+
git \
18+
libssl-dev \
19+
wget \
20+
git \
21+
software-properties-common \
22+
&& rm -rf /var/lib/apt/lists/*
23+
24+
ENV NVM_DIR /usr/local/nvm
25+
ENV NODE_VERSION 0.10.33
26+
27+
# Install nvm with node and npm
28+
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.20.0/install.sh | bash \
29+
&& . $NVM_DIR/nvm.sh \
30+
&& nvm install $NODE_VERSION \
31+
&& nvm alias default $NODE_VERSION \
32+
&& nvm use default
33+
34+
RUN source /root/.bashrc
35+
#RUN /usr/local/nvm/v$NODE_VERSION/bin/npm install -g eslint
36+
#RUN /usr/local/nvm/v$NODE_VERSION/bin/npm install -g eslint-config-airbnb
37+
38+
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
39+
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
40+
41+
RUN add-apt-repository ppa:jonathonf/vim -y
42+
RUN apt update
43+
RUN apt install vim -y
44+
45+
COPY dotfiles/.vimrc /root/.vimrc
46+
COPY dotfiles/.bash_aliases /root/.bash_aliases
47+
48+
RUN rm -r /root/.vim || true
49+
RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
50+
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
51+
RUN vim +PlugInstall +qall

0 commit comments

Comments
 (0)