Use custom configuration for Dockerfile

next
Sayan Nandan 4 years ago
parent f69bef7308
commit 0f89146b64
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -4,6 +4,7 @@
FROM ubuntu:20.04
ENV TZ=america/central
COPY tdb-dockerfile.toml $HOME/tdb.toml
RUN \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ >/etc/timezone && \
apt-get update && apt-get install git curl build-essential -y && \
@ -18,7 +19,7 @@ RUN \
$HOME/.cargo/bin/rustup self uninstall -y && \
cp -f target/release/tdb /usr/local/bin
CMD ["tdb"]
CMD ["tdb -c $HOME/tdb.toml"]
EXPOSE 2003/tcp

@ -0,0 +1,5 @@
# This file is to be used by the docker container
[server]
host = "0.0.0.0"
port = 2003
noart = false
Loading…
Cancel
Save