Skip to content

Commit

Permalink
Merge pull request pingcap#1070 from pingcap/siddontang/docker
Browse files Browse the repository at this point in the history
Dockerfile: update docker.
  • Loading branch information
siddontang committed Apr 9, 2016
2 parents 49c7b43 + d57f1ba commit 4c4ef41
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM golang
FROM golang:1.6

VOLUME /opt
COPY . /go/src/github.com/pingcap/tidb

RUN apt-get update && apt-get install -y wget git make ; \
cd /opt ; \
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH ; \
go get -d github.com/pingcap/tidb ; \
cd $GOPATH/src/github.com/pingcap/tidb ; \
make ; make server ; cp tidb-server/tidb-server /usr/bin/
RUN cd /go/src/github.com/pingcap/tidb && \
make godep && make server && \
cp tidb-server/tidb-server /go/bin/ && \
rm -rf /go/src/*

EXPOSE 4000

CMD ["/usr/bin/tidb-server"]
CMD ["tidb-server"]

0 comments on commit 4c4ef41

Please sign in to comment.