|
|
@ -4,15 +4,25 @@ FROM ubuntu:12.04
|
|
|
|
|
|
|
|
|
|
|
|
MAINTAINER Michael Crosby http://crosbymichael.com
|
|
|
|
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 update
|
|
|
|
RUN apt-get upgrade -y
|
|
|
|
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/
|
|
|
|
ADD . /app/
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt-get install -y golang-go && go build dockerui.go
|
|
|
|
RUN go build dockerui.go
|
|
|
|
|
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
EXPOSE 9000
|
|
|
|
ENTRYPOINT ["./dockerui"]
|
|
|
|
ENTRYPOINT ["./dockerui"]
|
|
|
|