Merge pull request #9 from randywallace/update-dockerfile

Update Dockerfile to build dockerui.go
pull/2/head
Michael Crosby 2013-10-03 11:34:41 -07:00
commit 5cfb08b536
1 changed files with 12 additions and 3 deletions

View File

@ -1,16 +1,25 @@
# Dockerfile for DockerUI
FROM ubuntu
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
RUN apt-get install -y curl ;\
curl -s https://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz | tar -v -C /opt -xz ;\
cp -a /opt/go/* /usr/local/ ;\
rm -rf /opt/go ;\
#RUN
ENV GOROOT /usr/local/
ADD . /app/
EXPOSE 9000
WORKDIR /app/
RUN go build dockerui.go
EXPOSE 9000
ENTRYPOINT ["./dockerui"]