Skip to content

Instantly share code, notes, and snippets.

View ryanbennettvoid's full-sized avatar

Ryan Bennett ryanbennettvoid

View GitHub Profile
# Dockerfile for a generic Ubuntu Node.js server
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y wget curl npm
RUN npm install -g n
RUN n stable
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN npm install -g nodemon
sudo apt-get update && \
sudo apt-get install -y wget curl npm && \
sudo npm install -g n && \
sudo n stable && \
sudo ln -s /usr/bin/nodejs /usr/bin/node && \
sudo npm install -g nodemon
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080
#!/bin/bash
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
#!/bin/bash
sudo apt-get update && \
sudo apt-get install -y wget curl npm && \
sudo npm install -g n && \
sudo n stable && \
sudo ln -s /usr/bin/nodejs /usr/bin/node && \
sudo npm install -g nodemon