dockerized-workstation/Dockerfile

55 lines
1.7 KiB
Docker

# v0.11 -> ubuntu 18.04 bionic
FROM phusion/baseimage:0.11
ARG AUTHORIZED_KEYS_URL=https://sneak.cloud/authorized_keys
ADD ./01ubuntu.sh /tmp/01ubuntu.sh
RUN bash /tmp/01ubuntu.sh && rm /tmp/01ubuntu.sh
RUN useradd -m user
ADD $AUTHORIZED_KEYS_URL /root/.ssh/authorized_keys
ADD $AUTHORIZED_KEYS_URL /home/user/.ssh/authorized_keys
########################################################
##### python3 stuff
########################################################
RUN pip3 install --upgrade pip
RUN pip3 install awscli
RUN pip3 install httpie
RUN pip3 install pipenv
RUN pip3 install powerline-shell
########################################################
##### ruby
########################################################
RUN gem install bundler
########################################################
##### atom editor
########################################################
ADD https://atom.io/download/deb /tmp/atom.deb
RUN dpkg -i /tmp/atom.deb && rm /tmp/atom.deb
########################################################
##### nvm
########################################################
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