summaryrefslogtreecommitdiffstats
path: root/docker/blocks/docker_gogs/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/blocks/docker_gogs/Dockerfile')
-rw-r--r--docker/blocks/docker_gogs/Dockerfile15
1 files changed, 6 insertions, 9 deletions
diff --git a/docker/blocks/docker_gogs/Dockerfile b/docker/blocks/docker_gogs/Dockerfile
index efedc31a80..1b58fbcf92 100644
--- a/docker/blocks/docker_gogs/Dockerfile
+++ b/docker/blocks/docker_gogs/Dockerfile
@@ -1,23 +1,20 @@
-FROM ubuntu:14.04
+FROM buildpack-deps:trusty-scm
# This part is taken from the official docker image --------------------
RUN apt-get update && apt-get install -y \
- build-essential ca-certificates curl \
- bzr git mercurial openssh-client\
- --no-install-recommends
+ build-essential --no-install-recommends
ENV GOLANG_VERSION 1.3
-RUN curl -sSL http://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
- | tar -v -C /usr/src -xz
-WORKDIR /usr/src/go
+RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
+ | tar -v -C /usr/src -xz
-RUN cd src && ./make.bash --no-clean 2>&1
+RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
ENV PATH /usr/src/go/bin:$PATH
-RUN mkdir -p /go/src
+RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
WORKDIR /go