You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
798 B
Docker

4 years ago
#
# The Dockerfile for the TerrabaseDB server tdb
#
4 years ago
FROM ubuntu:20.04
ENV TZ=america/central
4 years ago
RUN \
4 years ago
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone && \
apt-get update && apt-get install git curl build-essential -y && \
4 years ago
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 && \
4 years ago
apt-get autoremove -y && \
$HOME/.cargo/bin/rustup self uninstall -y && \
4 years ago
cp -f target/release/tdb /usr/local/bin
CMD ["tdb"]
4 years ago
EXPOSE 2003
ARG DEBIAN_FRONTEND=noninteractive