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

Moved go installation to RUN from ADD

This commit is contained in:
Randy D. Wallace Jr 2013-10-03 02:50:08 +00:00
parent cf018763bc
commit 302e88cc78

View file

@ -7,16 +7,13 @@ MAINTAINER Michael Crosby http://crosbymichael.com
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 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 /opt/go
ENV GOROOT /usr/local/
ADD . /app/