From c92515ae5d221e9a4ceff1663233bb630701a88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Garc=C3=ADa=20Amor?= Date: Wed, 30 Sep 2015 09:39:07 +0200 Subject: [PATCH] Small fix to better automated build in Docker Hub --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc5a5ce91..fbe5af843 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,12 @@ RUN apt-get update -qqy && \ apt-get autoremove && \ rm -rf /var/lib/apt/lists/* +# Use the force +COPY . /gopath/src/github.com/gogits/gogs/ + # Build binary and clean up useless files -RUN mkdir -p /app /goroot /gopath/src/github.com/gogits && \ +RUN mkdir -p /app /goroot && \ curl https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz | tar xzf - -C /goroot --strip-components=1 && \ - git clone https://github.com/gogits/gogs.git \ - /gopath/src/github.com/gogits/gogs && \ cd /gopath/src/github.com/gogits/gogs && \ GOROOT="/goroot" GOPATH="/gopath" PATH="$PATH:/goroot/bin:/gopath/bin" \ go get -v -tags "sqlite redis memcache cert pam" && \