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 # The Dockerfile for the TerrabaseDB server tdb
# #
FROM dockerfile/ubuntu FROM ubuntu:20.04
ENV TZ=america/central
RUN \ RUN \
cd /tmp && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone && \
apt install git apt-get update && apt-get install git curl -y && \
curl https://sh.rustup.rs -sSf | sh -s -- -y cd /tmp && \
git clone https://github.com/terrabasedb/terrabase.git curl https://sh.rustup.rs -sSf | sh -s -- -y && \
cd terrabase git clone https://github.com/terrabasedb/terrabase.git && \
git fetch --tags cd terrabase && \
lt=$(git describe --tags `git rev-list --tags --max-count=1`) git fetch --tags && \
git checkout $lt lt=$(git describe --tags $(git rev-list --tags --max-count=1)) && \
cargo build --release -p tdb 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 cp -f target/release/tdb /usr/local/bin
VOLUME ["/data"] VOLUME ["/data"]
@ -22,4 +25,6 @@ WORKDIR /data
CMD ["tdb"] CMD ["tdb"]
EXPOSE 2003 EXPOSE 2003
ARG DEBIAN_FRONTEND=noninteractive

Loading…
Cancel
Save