Created
May 1, 2014 20:40
-
-
Save dginther/1a9bbc3e3b40df0e337f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:precise | |
MAINTAINER demian@atpay.com | |
## Set Locale | |
RUN locale-gen --no-purge en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
## Make sure we are running the most current ubuntu packages | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
## Set Time Zone | |
#RUN echo "America/Denver"|sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata | |
## Install Ruby | |
RUN apt-get install -y python python-software-properties | |
RUN apt-add-repository ppa:brightbox/ruby-ng | |
RUN apt-get update | |
RUN apt-get install -y ruby1.9.3 rubygems ruby-switch | |
RUN ruby-switch --set ruby1.9.1 | |
RUN gem install bundler | |
## Install necessary packages | |
RUN apt-get install -y dstat git libcurl4-openssl-dev memcached imagemagick libxml2 libxml2-dev libxslt1-dev libmysqlclient-dev sqlite3 libsqlite3-dev nodejs curl | |
## Install Go | |
RUN apt-add-repository ppa:duh/golang | |
RUN apt-get update | |
RUN apt-get install -y golang | |
## Install Libsodium | |
#ADD https://download.libsodium.org/libsodium/releases/libsodium-0.4.5.tar.gz /tmp | |
ADD https://github.com/jedisct1/libsodium/releases/download/0.4.5/libsodium-0.4.5.tar.gz /tmp | |
#RUN cd /tmp;tar -zxvf libsodium-0.4.5.tar.gz | |
RUN cd /tmp/libsodium-0.4.5;./configure | |
RUN cd /tmp/libsodium-0.4.5;make;make check;make install | |
RUN ldconfig | |
## Install DNSCrypt proxy | |
#ADD http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.3.3.tar.gz /tmp | |
ADD https://github.com/jedisct1/dnscrypt-proxy/archive/1.3.3.tar.gz /tmp | |
RUN cd /tmp/dnscrypt-proxy-1.3.3;./configure;make;make install | |
RUN ldconfig | |
## Add users and groups | |
RUN useradd -m -d /home/deploy -s /bin/bash deploy | |
RUN useradd -m -d /home/ubuntu -s /bin/bash ubuntu | |
RUN useradd -m -d /home/application -s /bin/bash -g ubuntu application | |
RUN useradd -m -d /home/easygive -s /bin/bash easygive | |
## Add keys for git | |
RUN mkdir /root/.ssh | |
ADD ssh/config /root/.ssh/ | |
ADD keys/id_rsa /root/.ssh/ | |
ADD keys/id_rsa.pub /root/.ssh/ | |
RUN chmod -R 0600 /root/.ssh | |
ADD . /app | |
WORKDIR /app | |
EXPOSE 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment