# # The Dockerfile for the TerrabaseDB server tdb # FROM ubuntu:20.04 ENV TZ=america/central RUN \ ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone && \ apt-get update && apt-get install git curl build-essential -y && \ cd /tmp && \ curl https://sh.rustup.rs -sSf | sh -s -- -y && \ git clone https://github.com/terrabasedb/terrabase.git && \ cd terrabase && \ git fetch --tags && \ lr=`git describe --tags --abbrev=0 --match v*` && \ git checkout $lr && \ $HOME/.cargo/bin/cargo build --release -p tdb && \ apt-get remove git curl -y && \ apt-get autoremove -y && \ $HOME/.cargo/bin/rustup self uninstall -y && \ cp -f target/release/tdb /usr/local/bin CMD ["tdb"] EXPOSE 2003/tcp ARG DEBIAN_FRONTEND=noninteractive