From cf018763bc8619cb2c581dbfd49b5a0fddbbe070 Mon Sep 17 00:00:00 2001 From: "Randy D. Wallace Jr" Date: Wed, 2 Oct 2013 18:31:47 +0000 Subject: [PATCH] Update Dockerfile to pull go from googlecode --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b59d7aec..204262c00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,25 @@ FROM ubuntu:12.04 MAINTAINER Michael Crosby http://crosbymichael.com -RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get upgrade -y +ADD https://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz /opt/go.tar.gz + +RUN \ + cd /opt ;\ + tar xvvf go.tar.gz ;\ + rm go.tar.gz ;\ + ln -s /opt/go/bin/go /usr/local/bin/go ;\ +#RUN + +ENV GOROOT /opt/go + ADD . /app/ WORKDIR /app/ -RUN apt-get install -y golang-go && go build dockerui.go +RUN go build dockerui.go EXPOSE 9000 ENTRYPOINT ["./dockerui"]