mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 16:11:39 +00:00
16 lines
367 B
Docker
16 lines
367 B
Docker
|
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"]
|
||
|
|