Fix docker build

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

@ -2,18 +2,21 @@
# The Dockerfile for the TerrabaseDB server tdb
#
FROM dockerfile/ubuntu
FROM ubuntu:20.04
ENV TZ=america/central
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
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone && \
apt-get update && apt-get install git curl -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 && \
lt=$(git describe --tags $(git rev-list --tags --max-count=1)) && \
git checkout $lt && \
cargo build --release -p tdb && \
apt-get remove rustc git curl -y && \
apt-get autoremove -y && \
cp -f target/release/tdb /usr/local/bin
VOLUME ["/data"]
@ -22,4 +25,6 @@ WORKDIR /data
CMD ["tdb"]
EXPOSE 2003
EXPOSE 2003
ARG DEBIAN_FRONTEND=noninteractive

Loading…
Cancel
Save