Skip to content

Instantly share code, notes, and snippets.

@intuitivepixel
Forked from visualjeff/dockerfile
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save intuitivepixel/6b0d901f6c7aeb6dc31b to your computer and use it in GitHub Desktop.

Select an option

Save intuitivepixel/6b0d901f6c7aeb6dc31b to your computer and use it in GitHub Desktop.
# Docker version 1.1.2, build d84a070
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y \
git \
software-properties-common \
python-software-properties \
make\
gcc \
g++ \
curl \
wget \
tar \
openssh-server \
nano
RUN mkdir /var/run/sshd
RUN echo 'root:tomster'|chpasswd
RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update && apt-get install -y \
nodejs
# Create a nonroot user, and switch to it
RUN /usr/sbin/useradd --create-home --home-dir /usr/local/nonroot --shell /bin/bash nonroot
RUN /usr/sbin/adduser nonroot sudo
RUN echo 'nonroot:tomster'|chpasswd
RUN chown -R nonroot /usr/local/
RUN chown -R nonroot /usr/lib/
RUN chown -R nonroot /usr/bin/
RUN /bin/su nonroot
RUN npm install -g ember-cli
RUN npm install -g bower
RUN npm install -g phantomjs
RUN npm install -g forever
RUN exit
EXPOSE 22
EXPOSE 4200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment