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.

21 lines
512 B
Docker

4 years ago
#
# The Dockerfile for the TerrabaseDB server tdb
#
FROM rust:latest
4 years ago
RUN \
apt-get update && apt-get install git curl -y && \
4 years ago
cd /tmp && \
git clone https://github.com/terrabasedb/terrabasedb.git && \
cd terrabasedb && \
git checkout next && \
cargo test --release -p tdb && \
cargo build --release -p tdb && \
apt-get remove git curl -y && \
4 years ago
apt-get autoremove -y && \
4 years ago
cp -f target/release/tdb /usr/local/bin
CMD ["tdb", "-h", "0.0.0.0", "-p", "2003"]
4 years ago
EXPOSE 2003/tcp