mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
367 B
16 lines
367 B
8 years ago
|
FROM golang
|
||
|
|
||
|
VOLUME /opt
|
||
|
|
||
|
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/
|
||
|
|
||
|
EXPOSE 4000
|
||
|
|
||
|
CMD ["/usr/bin/tidb-server"]
|
||
|
|