Dockerfile 599 B

1234567891011121314151617181920
  1. FROM stackbrew/ubuntu:13.10
  2. MAINTAINER Meaglith Ma <genedna@gmail.com> (@genedna)
  3. ADD ./sources.list /etc/apt/
  4. RUN mkdir -p /go
  5. ENV PATH /usr/local/go/bin:/go/bin:$PATH
  6. ENV GOROOT /usr/local/go
  7. ENV GOPATH /go
  8. RUN apt-get update && apt-get install -y curl git mercurial zip wget ca-certificates build-essential
  9. RUN curl -s http://docker.u.qiniudn.com/go1.2.1.src.tar.gz | tar -v -C /usr/local -xz
  10. RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
  11. RUN go get -u github.com/gogits/gogs
  12. RUN cd $GOPATH/src/github.com/gogits/gogs && go build
  13. RUN apt-get autoremove -y
  14. RUN apt-get clean all