Add docker build

next
Sayan Nandan 4 years ago
parent 4e26fe2050
commit 444a704063
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -0,0 +1,25 @@
#
# The Dockerfile for the TerrabaseDB server tdb
#
FROM dockerfile/ubuntu
RUN \
cd /tmp &&
apt install git
curl https://sh.rustup.rs -sSf | sh -s -- -y
git clone https://github.com/terrabasedb/terrabase.git
cd terrabase
git fetch --tags
lt=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $lt
cargo build --release -p tdb
cp -f target/release/tdb /usr/local/bin
VOLUME ["/data"]
WORKDIR /data
CMD ["tdb"]
EXPOSE 2003
Loading…
Cancel
Save