forked from rafecolton/docker-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.base
More file actions
30 lines (24 loc) · 1.08 KB
/
Dockerfile.base
File metadata and controls
30 lines (24 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM stackbrew/ubuntu:12.04
MAINTAINER devops@modcloth.com
ENV DEBIAN_FRONTEND noninteractive
ENV GOROOT /usr/local/go
ENV GO_TARBALL go1.3.linux-amd64.tar.gz
ENV LD_LIBRARY_PATH /lib/x86_64-linux-gnu:/usr/local/lib:/usr/lib:/lib
# Fix some issues with APT packages
# See https://github.com/dotcloud/docker/issues/1024
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sFf /bin/true /sbin/initctl
RUN echo "initscripts hold" | dpkg --set-selections
# get ubuntu sources for installing things
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN echo "deb http://archive.ubuntu.com/ubuntu precise-updates main universe" >> /etc/apt/sources.list
# install deps
RUN apt-get update -y && apt-get install -y --no-install-recommends curl openssh-client make git \
pkg-config mercurial build-essential sudo
# install docker
RUN curl -sL https://get.docker.io | sh
# install go
RUN curl -sLO https://storage.googleapis.com/golang/$GO_TARBALL
RUN tar -C /usr/local -xzf $GO_TARBALL
RUN ln -sv /usr/local/go/bin/* /usr/local/bin
RUN rm -f $GO_TARBALL