1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

Update Dockerfile to pull go from googlecode

This commit is contained in:
Randy D. Wallace Jr 2013-10-02 18:31:47 +00:00
parent 6dff5cd19e
commit cf018763bc

View file

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