Update Dockerfile to pull go from googlecode

pull/2/head
Randy D. Wallace Jr 11 years ago
parent 6dff5cd19e
commit cf018763bc

@ -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"]

Loading…
Cancel
Save