Skip to content

Commit

Permalink
Dockerfile: update docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
siddontang committed Apr 8, 2016
1 parent 49c7b43 commit d57f1ba
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 d57f1ba

Please sign in to comment.