FROM ubuntu:14.04
MAINTAINER Birkhoff Lee <birkhoff.lee.cn@gmail.com>
# Set the environment up
WORKDIR ~
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install openssh-server nodejs-legacy npm git nginx -y
RUN mkdir ~/.ssh
RUN /etc/init.d/ssh restart
# Install forever and coffeeScript library
RUN npm i -g forever coffee-script
# Download AnonyPages
WORKDIR ~
RUN mkdir /var/www && chmod 755 /var/www
RUN cd /var/www && git clone
https://github.com/BirkhoffLee/AnonyPages
# Prepare AnonyPages
WORKDIR /var/www/AnonyPages
RUN npm i
# Ports
EXPOSE 80 443 22/udp